mercurial/pycompat.py
changeset 30330 a2f2f694dce9
parent 30327 e0d9b6aab4c5
child 30334 19d8e19fde5b
--- a/mercurial/pycompat.py	Sun Oct 09 09:00:47 2016 -0400
+++ b/mercurial/pycompat.py	Sun Nov 06 04:36:26 2016 +0530
@@ -43,6 +43,7 @@
     osname = os.name.encode('ascii')
     ospathsep = os.pathsep.encode('ascii')
     ossep = os.sep.encode('ascii')
+    sysargv = list(map(os.fsencode, sys.argv))
 
     def sysstr(s):
         """Return a keyword str to be passed to Python functions such as
@@ -91,6 +92,7 @@
     osname = os.name
     ospathsep = os.pathsep
     ossep = os.sep
+    sysargv = sys.argv
 
 stringio = io.StringIO
 empty = _queue.Empty