Mercurial > hg
diff hgext/convert/convcmd.py @ 48934:06de08b36c82
py3: use str instead of pycompat.unicode
pycompat.unicode is an alias to str.
Differential Revision: https://phab.mercurial-scm.org/D12340
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 11:24:57 -0700 |
parents | f254fc73d956 |
children | fd5b8e696b75 |
line wrap: on
line diff
--- a/hgext/convert/convcmd.py Tue Mar 08 10:58:22 2022 +0100 +++ b/hgext/convert/convcmd.py Mon Feb 21 11:24:57 2022 -0700 @@ -86,7 +86,7 @@ def recode(s): - if isinstance(s, pycompat.unicode): + if isinstance(s, str): return s.encode(pycompat.sysstr(orig_encoding), 'replace') else: return s.decode('utf-8').encode(