From 0b7e4e5ce57804ede10e3dcc4fbe9756bf9c727a Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 4 Aug 2012 22:46:52 +0200 Subject: [PATCH] src/registry.py: Fix encoding issue with Python 3. --- src/registry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/registry.py b/src/registry.py index 389b42474..45b935252 100644 --- a/src/registry.py +++ b/src/registry.py @@ -155,7 +155,7 @@ def isValidRegistryName(name): return len(name.split()) == 1 and not name.startswith('_') def escape(name): - name = encoder(name)[0] + name = encoder(name)[0].decode() name = name.replace(':', '\\:') name = name.replace('.', '\\.') return name @@ -163,7 +163,7 @@ def escape(name): def unescape(name): name = name.replace('\\.', '.') name = name.replace('\\:', ':') - name = decoder(name)[0] + name = decoder(name.encode())[0] return name _splitRe = re.compile(r'(?