summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-04-26 20:32:08 (GMT)
committerGuido van Rossum <guido@python.org>2000-04-26 20:32:08 (GMT)
commit868b50af1710442a8f92b266ff507259bc09e7de (patch)
tree5aa32196a3a5e7fd8d44a517b92bc217ad48eeb6 /Lib/os.py
parentac308d0a6fb0d68bbb4949cadc54e221d27da958 (diff)
downloadcpython-868b50af1710442a8f92b266ff507259bc09e7de.zip
cpython-868b50af1710442a8f92b266ff507259bc09e7de.tar.gz
cpython-868b50af1710442a8f92b266ff507259bc09e7de.tar.bz2
Michael Hudson fixes a case where execv() is called (for a test) with
an empty argument list -- another patch he's checking in will make this illegal (the first argument should always be the program name).
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 7f70f30..c7a3cc5 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -252,7 +252,7 @@ def _execvpe(file, args, env=None):
if not _notfound:
import tempfile
# Exec a file that is guaranteed not to exist
- try: execv(tempfile.mktemp(), ())
+ try: execv(tempfile.mktemp(), ('blah',))
except error, _notfound: pass
exc, arg = error, _notfound
for dir in PATH: