This is an archive of the discontinued Mercurial Phabricator instance.

py3: make sure we pass sysstr in sqlite3.connect()
ClosedPublic

Authored by pulkit on Oct 19 2018, 5:26 PM.

Details

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

pulkit created this revision.Oct 19 2018, 5:26 PM
yuja added a subscriber: yuja.Oct 20 2018, 3:19 AM

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().

pulkit updated this revision to Diff 12293.Oct 21 2018, 11:28 AM
This revision was automatically updated to reflect the committed changes.