Commit a6516bb8 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent eaaaf1f0
......@@ -28,7 +28,7 @@ md5sum = 8c044b28682940fbca62657c16613157
[ru_libinstance.jinja2.cfg]
_update_hash_filename_ = ru/libinstance.jinja2.cfg
md5sum = 202c7efcb4d2387c0e542aed4aa1f2cf
md5sum = c1b46d5322fdf3c6396d3ac8828ff6e3
[ru_sdr_libinstance.jinja2.cfg]
_update_hash_filename_ = ru/sdr/libinstance.jinja2.cfg
......@@ -80,7 +80,7 @@ md5sum = 2b8b57c5771b2a2203c0e7767e629e55
[ru_xbuildout.py]
_update_hash_filename_ = ru/xbuildout.py
md5sum = b9aa7356ebccfb1e9d2324106ad88485
md5sum = d569421cb4ce2f4b999d82582680eb58
[ru_capdo.c]
_update_hash_filename_ = ru/capdo.c
......@@ -88,7 +88,7 @@ md5sum = 52da9fe3a569199e35ad89ae1a44c30e
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum = fe0ecccc3be23a8fc5cf85d2278b6e8c
md5sum = 1b2cdab298461bfd6d2bee7ffd753756
[template-ors-enb]
_update_hash_filename_ = instance-ors-enb.jinja2.cfg
......
......@@ -128,18 +128,16 @@ def _decode(s):
return out
"""
# quote converts string s into quoted form with all buildout control characters escaped... XXX
# XXX -> pyquote?
def quote(s: str) -> str:
assert isinstance(s, str), type(s)
r = str.__repr__(s) # both str and markupsafe.Markup go as regular str
for c in '$[]\n':
r = r.replace(c, r'\x%02x' % ord(c))
if r[1:-1] == s:
return s # original string
return '!py!' + r
"""
## quote converts string s into quoted form with all buildout control characters escaped... XXX
## XXX -> pyquote?
#def quote(s: str) -> str:
# assert isinstance(s, str), type(s)
# r = str.__repr__(s) # both str and markupsafe.Markup go as regular str
# for c in '$[]\n':
# r = r.replace(c, r'\x%02x' % ord(c))
# if r[1:-1] == s:
# return s # original string
# return '!py!' + r
# ----------------------------------------
......
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