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

Yuya Nishihara yuya at tcha.org
Sat Oct 20 03:05:25 EDT 2018


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


More information about the Mercurial-devel mailing list