Commit ba6dbbe6 authored by Julien Muchembled's avatar Julien Muchembled

fixup! Add support for escaping $ with $$

parent ccf07e8c
...@@ -55,6 +55,7 @@ import tempfile ...@@ -55,6 +55,7 @@ import tempfile
import pprint import pprint
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:
...@@ -1732,7 +1733,7 @@ def _save_option(option, value, f): ...@@ -1732,7 +1733,7 @@ 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)
try: try:
get_option = options._get get_option = partial(options._get, last=False)
except AttributeError: except AttributeError:
get_option = options.get get_option = options.get
for option in sorted(options): for option in sorted(options):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment