Patchwork D7373: py3: pass a bytes value for "msg" to nouideprecwarn()

login
register
mail settings
Submitter phabricator
Date Nov. 13, 2019, 2 p.m.
Message ID <61357645697f56b368fd2fe2c992c29c@localhost.localdomain>
Download mbox | patch
Permalink /patch/43157/
State Not Applicable
Headers show

Comments

phabricator - Nov. 13, 2019, 2 p.m.
Closed by commit rHGc207c46a86b9: py3: pass a bytes value for &quot;msg&quot; to nouideprecwarn() (authored by dlax).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7373?vs=18051&id=18053

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7373/new/

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

AFFECTED FILES
  mercurial/pure/parsers.py
  mercurial/revlog.py

CHANGE DETAILS




To: dlax, indygreg, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -207,7 +207,7 @@ 
 class revlogoldindex(list):
     @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
 
@@ -657,15 +657,15 @@ 
     @property
     def nodemap(self):
         msg = (
-            "revlog.nodemap is deprecated, "
-            "use revlog.index.[has_node|rev|get_rev]"
+            b"revlog.nodemap is deprecated, "
+            b"use revlog.index.[has_node|rev|get_rev]"
         )
         util.nouideprecwarn(msg, b'5.3', stacklevel=2)
         return self.index.nodemap
 
     @property
     def _nodecache(self):
-        msg = "revlog._nodecache is deprecated, use revlog.index.nodemap"
+        msg = b"revlog._nodecache is deprecated, use revlog.index.nodemap"
         util.nouideprecwarn(msg, b'5.3', stacklevel=2)
         return self.index.nodemap
 
diff --git a/mercurial/pure/parsers.py b/mercurial/pure/parsers.py
--- a/mercurial/pure/parsers.py
+++ b/mercurial/pure/parsers.py
@@ -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