mercurial/util.py
changeset 19729 dfefb719eb92
parent 19710 887ffa22fd0d
child 19852 57479e0d203d
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)