cleanup: remove compatibility code for Python < 2.7.1
authorManuel Jacob <me@manueljacob.de>
Fri, 29 May 2020 03:43:08 +0200
changeset 44866 5258bffdb1d6
parent 44865 233ee525dcef
child 44867 8e8fd938ca07
cleanup: remove compatibility code for Python < 2.7.1 The minimum supported Python version was recently raised to 2.7.4.
mercurial/windows.py
--- a/mercurial/windows.py	Mon May 25 17:39:23 2020 -0400
+++ b/mercurial/windows.py	Fri May 29 03:43:08 2020 +0200
@@ -476,9 +476,6 @@
 
 def quotecommand(cmd):
     """Build a command string suitable for os.popen* calls."""
-    if sys.version_info < (2, 7, 1):
-        # Python versions since 2.7.1 do this extra quoting themselves
-        return b'"' + cmd + b'"'
     return cmd