Commit 8422e830 authored by Łukasz Nowak's avatar Łukasz Nowak

buildout.py: Deserialize text on section:option access

parent c970f5cf
...@@ -1550,6 +1550,12 @@ class Options(DictMixin): ...@@ -1550,6 +1550,12 @@ class Options(DictMixin):
else: else:
raise MissingOption("Referenced option does not exist:", raise MissingOption("Referenced option does not exist:",
section, option) section, option)
else:
# As it is safe to deserialize text, try to do so
if hasattr(v, 'startswith') and v.startswith(SERIALISED_VALUE_MAGIC):
new_v = loads(v)
if isinstance(new_v, text_type):
v = new_v
subs.append(v) subs.append(v)
subs.append('') subs.append('')
......
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