# HG changeset patch # User Pulkit Goyal # Date 2018-10-19 21:05:50 # Node ID 3b782669561d1398842c536272db6dd2886d21e1 # Parent 5eefd32cb3824b32889d80df97ba4a9bf3c9c098 py3: make sure we pass sysstr in sqlite3.connect() Differential Revision: https://phab.mercurial-scm.org/D5174 diff --git a/hgext/sqlitestore.py b/hgext/sqlitestore.py --- a/hgext/sqlitestore.py +++ b/hgext/sqlitestore.py @@ -63,6 +63,7 @@ from mercurial.thirdparty import ( from mercurial import ( ancestor, dagop, + encoding, error, extensions, localrepo, @@ -1020,7 +1021,7 @@ class sqliterepository(localrepo.localre def makedb(path): """Construct a database handle for a database at path.""" - db = sqlite3.connect(path) + db = sqlite3.connect(encoding.strfromlocal(path)) db.text_factory = bytes res = db.execute(r'PRAGMA user_version').fetchone()[0]