[Python-checkins] python/dist/src/Lib subprocess.py, 1.8.2.1, 1.8.2.2

astrand at users.sourceforge.net astrand at users.sourceforge.net
Sun Dec 5 21:05:07 CET 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27214
Modified Files:
 Tag: release24-maint
	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.8.2.1
retrieving revision 1.8.2.2
diff -u -d -r1.8.2.1 -r1.8.2.2
--- subprocess.py	30 Nov 2004 18:11:37 -0000	1.8.2.1
+++ subprocess.py	5 Dec 2004 20:04:56 -0000	1.8.2.2
@@ -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 "


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /