Commit 9afd8b3a authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

zsqlbrain: py3 hack

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