[Python-checkins] CVS: python/dist/src/Lib os.py,1.33,1.34
Guido van Rossum
python-dev@python.org
Wed, 26 Apr 2000 16:32:11 -0400 (EDT)
Update of /projects/cvsroot/python/dist/src/Lib
In directory eric:/projects/python/develop/guido/src/Lib
Modified Files:
os.py
Log Message:
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).
Index: os.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/os.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -r1.33 -r1.34
*** os.py 2000/04/25 10:53:22 1.33
--- os.py 2000/04/26 20:32:08 1.34
***************
*** 253,257 ****
import tempfile
# Exec a file that is guaranteed not to exist
! try: execv(tempfile.mktemp(), ())
except error, _notfound: pass
exc, arg = error, _notfound
--- 253,257 ----
import tempfile
# Exec a file that is guaranteed not to exist
! try: execv(tempfile.mktemp(), ('blah',))
except error, _notfound: pass
exc, arg = error, _notfound