Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG3b782669561d: py3: make sure we pass sysstr in sqlite3.connect()
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
def makedb(path):
"""Construct a database handle for a database at path."""
- db = sqlite3.connect(path)
+ db = sqlite3.connect(pycompat.sysstr(path))
Perhaps, encoding.strfromlocal().