aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar keis <keijser@gmail.com>2011-01-24 18:59:17 +0100
committerGravatar keis <keijser@gmail.com>2011-02-15 21:17:16 +0100
commite2e1f6203fa8e9bdbae567cfbec1ee341c10282b (patch)
tree17e7301c9b9d242b49ddd0b8ffa258a519c48b38 /examples
parent3594f35e565ebf210b583bcc3c4df042e0dc4191 (diff)
don't escape in Config.set
escapes should be done by caller checks for plain newline as these would break stuff
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