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

zsqlbrain: py3 hack

parent a63ea2fa
......@@ -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