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

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Sat Oct 20 03:19:12 EDT 2018


yuja added a comment.


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

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5174

To: pulkit, #hg-reviewers
Cc: yuja, mercurial-devel


More information about the Mercurial-devel mailing list