1. Arne Babenhauserheide
  2. hg-i18n-de

Commits

Steve Borho  committed dbc5468

util: work around behavior change in Python 2.7.1

  • Participants
  • Parent commits a1a7da3
  • Branches stable

Comments (0)

Files changed (1)

File mercurial/util.py

View file
             return '1'
         return str(val)
     origcmd = cmd
-    if os.name == 'nt':
+    if os.name == 'nt' and sys.version_info < (2, 7, 1):
+        # Python versions since 2.7.1 do this extra quoting themselves
         cmd = '"%s"' % cmd
     env = dict(os.environ)
     env.update((k, py2shell(v)) for k, v in environ.iteritems())