commit | 738131d39130563ad75e73ed544e2a3edbae64f2 | [log] [tgz] |
---|---|---|
author | Peter Astrand <astrand@lysator.liu.se> | Tue Nov 30 21:04:45 2004 +0000 |
committer | Peter Astrand <astrand@lysator.liu.se> | Tue Nov 30 21:04:45 2004 +0000 |
tree | 533279296575d1ade838fe29360197cea8a6ec04 | |
parent | 6fdf3cbb13077d44f14251034a31b512ebc9005a [diff] [blame] |
Raise TypeError if bufsize argument is not an integer. Patch 1071755, slightly modified.
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 8d0204e..9e326fb 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py
@@ -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 "