diff options
author | Guido van Rossum <guido@python.org> | 2000-04-26 20:32:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-04-26 20:32:08 (GMT) |
commit | 868b50af1710442a8f92b266ff507259bc09e7de (patch) | |
tree | 5aa32196a3a5e7fd8d44a517b92bc217ad48eeb6 /Lib/os.py | |
parent | ac308d0a6fb0d68bbb4949cadc54e221d27da958 (diff) | |
download | cpython-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |