Commit d2aa8523 authored by Jérome Perrin's avatar Jérome Perrin

zsqlbrain: py3 hack

parent a1f58310
...@@ -46,7 +46,11 @@ class ZSQLBrain(Acquisition.Implicit): ...@@ -46,7 +46,11 @@ class ZSQLBrain(Acquisition.Implicit):
return self.path return self.path
def getPath(self): def getPath(self):
return self.path path = self.path
# TODO py3: understand why this is bytes sometimes
if not isinstance(path, str):
path = path.decode()
return path
def getUid(self): def getUid(self):
return self.uid return self.uid
......
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