Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.buildout
Commits
83379539
Commit
83379539
authored
Oct 31, 2023
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Add support for escaping $ with $$
parent
c34ad430
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+7
-4
No files found.
src/zc/buildout/buildout.py
View file @
83379539
...
@@ -54,6 +54,7 @@ import sys
...
@@ -54,6 +54,7 @@ import sys
import
tempfile
import
tempfile
import
zc.buildout
import
zc.buildout
import
zc.buildout.download
import
zc.buildout.download
from
functools
import
partial
PY3
=
sys
.
version_info
[
0
]
==
3
PY3
=
sys
.
version_info
[
0
]
==
3
if
PY3
:
if
PY3
:
...
@@ -1537,10 +1538,12 @@ def _save_option(option, value, f):
...
@@ -1537,10 +1538,12 @@ def _save_option(option, value, f):
def
_save_options
(
section
,
options
,
f
):
def
_save_options
(
section
,
options
,
f
):
print_
(
'[%s]'
%
section
,
file
=
f
)
print_
(
'[%s]'
%
section
,
file
=
f
)
items
=
list
(
options
.
items
())
if
isinstance
(
options
,
Options
):
items
.
sort
()
get_option
=
partial
(
options
.
get
,
last
=
False
)
for
option
,
value
in
items
:
else
:
_save_option
(
option
,
value
,
f
)
get_option
=
options
.
get
for
option
in
sorted
(
options
):
_save_option
(
option
,
get_option
(
option
),
f
)
def
_default_globals
():
def
_default_globals
():
"""Return a mapping of default and precomputed expressions.
"""Return a mapping of default and precomputed expressions.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment