diff mercurial/ui.py @ 47412:c887bab2dccf

py3: byteify the version string passed to the deprecation warning method The other callers were already correct. Differential Revision: https://phab.mercurial-scm.org/D10873
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 11 Jun 2021 23:57:14 -0400
parents a671832a8e41
children b1b3127227be
line wrap: on
line diff
--- a/mercurial/ui.py	Fri Jun 11 23:51:27 2021 -0400
+++ b/mercurial/ui.py	Fri Jun 11 23:57:14 2021 -0400
@@ -1065,7 +1065,7 @@
         This method exist as `getpath` need a ui for potential warning message.
         """
         msg = b'ui.getpath is deprecated, use `get_*` functions from urlutil'
-        self.deprecwarn(msg, '6.0')
+        self.deprecwarn(msg, b'6.0')
         return self.paths.getpath(self, *args, **kwargs)
 
     @property