Mercurial > public > mercurial-scm > hg
diff mercurial/pure/parsers.py @ 43619:c207c46a86b9
py3: pass a bytes value for "msg" to nouideprecwarn()
That function formats "msg" with the "version" value. On Python 3, this
leads to "TypeError: can only concatenate str (not "bytes") to str".
Also eliminate spurious strings concatenation in single-line
declarations.
Differential Revision: https://phab.mercurial-scm.org/D7373
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Wed, 13 Nov 2019 09:09:42 +0100 |
parents | 02802fa87b74 |
children | ab595920de0e |
line wrap: on
line diff
--- a/mercurial/pure/parsers.py Tue Nov 12 15:53:58 2019 -0800 +++ b/mercurial/pure/parsers.py Wed Nov 13 09:09:42 2019 +0100 @@ -49,7 +49,7 @@ class BaseIndexObject(object): @property def nodemap(self): - msg = "index.nodemap is deprecated, " "use index.[has_node|rev|get_rev]" + msg = b"index.nodemap is deprecated, use index.[has_node|rev|get_rev]" util.nouideprecwarn(msg, b'5.3', stacklevel=2) return self._nodemap