Commit 790b8e2e authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

zsqlbrain: py3 hack

parent 9a3cf754
......@@ -46,7 +46,11 @@ class ZSQLBrain(Acquisition.Implicit):
return self.path
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):
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