# HG changeset patch # User Manuel Jacob # Date 2020-05-29 01:43:08 # Node ID 5258bffdb1d65b8d382e73be6aa293af575b9f1e # Parent 233ee525dcefc56fd452cc86bd63218b3d4cba5b cleanup: remove compatibility code for Python < 2.7.1 The minimum supported Python version was recently raised to 2.7.4. diff --git a/mercurial/windows.py b/mercurial/windows.py --- a/mercurial/windows.py +++ b/mercurial/windows.py @@ -476,9 +476,6 @@ def shellsplit(s): 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