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
168671f1
Commit
168671f1
authored
Oct 31, 2023
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Add support for escaping $ with $$
parent
ec4b9404
Changes
1
Show 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 @
168671f1
...
...
@@ -54,6 +54,7 @@ import sys
import
tempfile
import
zc.buildout
import
zc.buildout.download
from
functools
import
partial
PY3
=
sys
.
version_info
[
0
]
==
3
if
PY3
:
...
...
@@ -1537,10 +1538,12 @@ def _save_option(option, value, f):
def
_save_options
(
section
,
options
,
f
):
print_
(
'[%s]'
%
section
,
file
=
f
)
items
=
list
(
options
.
items
())
items
.
sort
()
for
option
,
value
in
items
:
_save_option
(
option
,
value
,
f
)
if
isinstance
(
options
,
Options
):
get_option
=
partial
(
options
.
get
,
last
=
False
)
else
:
get_option
=
options
.
get
for
option
in
sorted
(
options
):
_save_option
(
option
,
get_option
(
option
),
f
)
def
_default_globals
():
"""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