commit | 46a05a7db5a65ebee04a43e0394672a72b37ffa1 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Jun 07 21:56:45 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Jun 07 21:56:45 2007 +0000 |
tree | 9b341cb102776b9f2656f25163781bcc92a92640 | |
parent | ad5b9de288de6b5f965fdfd4db30753c30f9d5ca [diff] [blame] |
The bufsize argument to Popen() should accept None meaning the default (0).
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 051f2d4..1ae7426 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py
@@ -465,6 +465,8 @@ _cleanup() self._child_created = False + if bufsize is None: + bufsize = 0 # Restore default if not isinstance(bufsize, int): raise TypeError("bufsize must be an integer")