summaryrefslogtreecommitdiff
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-03-02 00:03:41 -0800
committerGitHub <noreply@github.com>2017-03-02 00:03:41 -0800
commitcb90f261226fc2d4db60a68b53a788e8ae5905cf (patch)
tree9cad32ede4cd213af21faabe91abb42c59bb7717 /Lib/subprocess.py
parentafbb5d1cbd291e36853249a143ca7db6949fd8ea (diff)
downloadcpython-git-cb90f261226fc2d4db60a68b53a788e8ae5905cf.tar.gz
fix subprocess on Windows (#391)
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 23e9bd328c..76c340c879 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -988,7 +988,7 @@ class Popen(object):
int(not close_fds),
creationflags,
env,
- os.fspath(cwd),
+ os.fspath(cwd) if cwd is not None else None,
startupinfo)
finally:
# Child is launched. Close the parent's copy of those pipe