Merged revisions 82971 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r82971 | stefan.krah | 2010-07-19 16:20:53 +0200 (Mon, 19 Jul 2010) | 4 lines

  Issue #9265: Incorrect name passed as arg[0] when shell=True
  and executable specified.
........
This commit is contained in:
Stefan Krah 2010-07-19 14:39:36 +00:00
parent 5bf0664175
commit 8db99c8995
2 changed files with 21 additions and 0 deletions

View file

@ -1044,6 +1044,8 @@ class Popen(object):
if shell:
args = ["/bin/sh", "-c"] + args
if executable:
args[0] = executable
if executable is None:
executable = args[0]