plan9: update util.py for cpython 2.7 build
authorJeff Sickel <jas@corpus-callosum.com>
Fri, 13 Sep 2013 15:40:04 -0500
changeset 19729 dfefb719eb92
parent 19728 3daabd2da78b
child 19730 d184bae667e4
plan9: update util.py for cpython 2.7 build
mercurial/util.py
--- a/mercurial/util.py	Fri Sep 06 23:47:59 2013 -0700
+++ b/mercurial/util.py	Fri Sep 13 15:40:04 2013 -0500
@@ -469,7 +469,8 @@
         return str(val)
     origcmd = cmd
     cmd = quotecommand(cmd)
-    if sys.platform == 'plan9':
+    if sys.platform == 'plan9' and (sys.version_info[0] == 2
+                                    and sys.version_info[1] < 7):
         # subprocess kludge to work around issues in half-baked Python
         # ports, notably bichued/python:
         if not cwd is None: