diff mercurial/cmdutil.py @ 32202:6f173560c7f4

py3: slice over bytes to prevent getting ascii values
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 05 May 2017 01:26:13 +0530
parents a77e61b45384
children 055cca8e167b
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Sat Apr 08 11:02:37 2017 +0530
+++ b/mercurial/cmdutil.py	Fri May 05 01:26:13 2017 +0530
@@ -491,10 +491,10 @@
         patlen = len(pat)
         i = 0
         while i < patlen:
-            c = pat[i]
+            c = pat[i:i + 1]
             if c == '%':
                 i += 1
-                c = pat[i]
+                c = pat[i:i + 1]
                 c = expander[c]()
             newname.append(c)
             i += 1