aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/data/plugins/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/data/plugins/config.py b/examples/data/plugins/config.py
index b7ecf42..c9bdf67 100644
--- a/examples/data/plugins/config.py
+++ b/examples/data/plugins/config.py
@@ -47,7 +47,8 @@ class Config(DictMixin):
value = int(value)
else:
- value = value.encode('unicode_escape')
+ value = unicode(value)
+ assert '\n' not in value
if not force and key in self and self[key] == value:
return