mercurial/pycompat.py
changeset 36556 63fe5ca93b13
parent 36334 4cd2d1cc2a31
child 36644 e2b87e19c6ef
--- a/mercurial/pycompat.py	Fri Mar 02 04:49:08 2018 +0530
+++ b/mercurial/pycompat.py	Thu Mar 01 17:46:34 2018 -0500
@@ -224,8 +224,8 @@
     xrange = builtins.range
     unicode = str
 
-    def open(name, mode='r', buffering=-1):
-        return builtins.open(name, sysstr(mode), buffering)
+    def open(name, mode='r', buffering=-1, encoding=None):
+        return builtins.open(name, sysstr(mode), buffering, encoding)
 
     def _getoptbwrapper(orig, args, shortlist, namelist):
         """