diff contrib/testparseutil.py @ 43091:127cc1f72e70

py3: stop normalizing .encode()/.decode() arguments to unicode Now that we don't byte transform string literals, we no longer need this transform. While we're here, we also drop some superfluous u'' prefix in existing callers. Differential Revision: https://phab.mercurial-scm.org/D7011
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 06 Oct 2019 17:27:51 -0400
parents 2372284d9457
children 70d42e2ad9b4
line wrap: on
line diff
--- a/contrib/testparseutil.py	Sun Oct 06 16:58:55 2019 -0400
+++ b/contrib/testparseutil.py	Sun Oct 06 17:27:51 2019 -0400
@@ -49,7 +49,7 @@
     def sysstr(s):
         if isinstance(s, builtins.str):
             return s
-        return s.decode(u'latin-1')
+        return s.decode('latin-1')
 
     def opentext(f):
         return open(f, 'r')