comparison mercurial/util.py @ 19729:dfefb719eb92

plan9: update util.py for cpython 2.7 build
author Jeff Sickel <jas@corpus-callosum.com>
date Fri, 13 Sep 2013 15:40:04 -0500
parents 887ffa22fd0d
children 57479e0d203d
comparison
equal deleted inserted replaced
19728:3daabd2da78b 19729:dfefb719eb92
467 if val is True: 467 if val is True:
468 return '1' 468 return '1'
469 return str(val) 469 return str(val)
470 origcmd = cmd 470 origcmd = cmd
471 cmd = quotecommand(cmd) 471 cmd = quotecommand(cmd)
472 if sys.platform == 'plan9': 472 if sys.platform == 'plan9' and (sys.version_info[0] == 2
473 and sys.version_info[1] < 7):
473 # subprocess kludge to work around issues in half-baked Python 474 # subprocess kludge to work around issues in half-baked Python
474 # ports, notably bichued/python: 475 # ports, notably bichued/python:
475 if not cwd is None: 476 if not cwd is None:
476 os.chdir(cwd) 477 os.chdir(cwd)
477 rc = os.system(cmd) 478 rc = os.system(cmd)