##// END OF EJS Templates
py3: make sure we pass sysstr in sqlite3.connect()...
Pulkit Goyal -
r40446:3b782669 default
parent child Browse files
Show More
@@ -63,6 +63,7 b' from mercurial.thirdparty import ('
63 from mercurial import (
63 from mercurial import (
64 ancestor,
64 ancestor,
65 dagop,
65 dagop,
66 encoding,
66 error,
67 error,
67 extensions,
68 extensions,
68 localrepo,
69 localrepo,
@@ -1020,7 +1021,7 b' class sqliterepository(localrepo.localre'
1020 def makedb(path):
1021 def makedb(path):
1021 """Construct a database handle for a database at path."""
1022 """Construct a database handle for a database at path."""
1022
1023
1023 db = sqlite3.connect(path)
1024 db = sqlite3.connect(encoding.strfromlocal(path))
1024 db.text_factory = bytes
1025 db.text_factory = bytes
1025
1026
1026 res = db.execute(r'PRAGMA user_version').fetchone()[0]
1027 res = db.execute(r'PRAGMA user_version').fetchone()[0]
General Comments 0
You need to be logged in to leave comments. Login now