2to3 everything
This commit is contained in:
@@ -70,7 +70,7 @@ def monkeypatch_db():
|
||||
def patched___init__(self, path, text=None, timeout=0):
|
||||
# Code taken from Anki's DB.__init__()
|
||||
encpath = path
|
||||
if isinstance(encpath, unicode):
|
||||
if isinstance(encpath, str):
|
||||
encpath = path.encode("utf-8")
|
||||
# Allow more than one thread to use this connection.
|
||||
self._db = sqlite.connect(encpath,
|
||||
|
||||
Reference in New Issue
Block a user