Mercurial > hg
diff hgext/convert/subversion.py @ 31447:067add650129
encoding: factor out unicode variants of from/tolocal()
Unfortunately, these functions will be commonly used on Python 3.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 13 Mar 2017 09:11:08 -0700 |
parents | b023caa6dbae |
children | 0fa781320203 |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Mon Mar 13 08:53:31 2017 -0700 +++ b/hgext/convert/subversion.py Mon Mar 13 09:11:08 2017 -0700 @@ -1186,7 +1186,7 @@ # best bet is to assume they are in local # encoding. They will be passed to command line calls # later anyway, so they better be. - m.add(encoding.tolocal(name.encode('utf-8'))) + m.add(encoding.unitolocal(name)) break return m