hgext/convert/common.py
changeset 43506 9f70512ae2cf
parent 43503 313e3a279828
child 44964 d96d8bbbedb1
--- a/hgext/convert/common.py	Sun Nov 10 07:30:14 2019 -0800
+++ b/hgext/convert/common.py	Fri Nov 08 11:19:20 2019 -0800
@@ -57,7 +57,7 @@
 def shlexer(data=None, filepath=None, wordchars=None, whitespace=None):
     if data is None:
         if pycompat.ispy3:
-            data = open(filepath, b'r', encoding=r'latin1')
+            data = open(filepath, b'r', encoding='latin1')
         else:
             data = open(filepath, b'r')
     else: