python/dist/src/Lib subprocess.py,1.9,1.10
Update of /cvsroot/python/python/dist/src/Lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2346 Modified Files: subprocess.py Log Message: Raise TypeError if bufsize argument is not an integer. Patch 1071755, slightly modified. Index: subprocess.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/subprocess.py,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- subprocess.py 30 Nov 2004 18:06:42 -0000 1.9 +++ subprocess.py 30 Nov 2004 21:04:44 -0000 1.10 @@ -504,6 +504,9 @@ """Create new Popen instance.""" _cleanup() + if not isinstance(bufsize, (int, long)): + raise TypeError("bufsize must be an integer") + if mswindows: if preexec_fn is not None: raise ValueError("preexec_fn is not supported on Windows "
participants (1)
-
astrandï¼ users.sourceforge.net