mercurial/util.py
changeset 36166 02ed94dd9fd6
parent 36076 15c8c4ac5d9c
child 36167 2874896a6e3b
--- a/mercurial/util.py	Mon Feb 12 20:42:28 2018 -0500
+++ b/mercurial/util.py	Mon Feb 12 20:43:05 2018 -0500
@@ -253,7 +253,7 @@
     if _dowarn:
         msg += ("\n(compatibility will be dropped after Mercurial-%s,"
                 " update your code.)") % version
-        warnings.warn(msg, DeprecationWarning, stacklevel + 1)
+        warnings.warn(pycompat.sysstr(msg), DeprecationWarning, stacklevel + 1)
 
 DIGESTS = {
     'md5': hashlib.md5,