The bufsize argument to Popen() should accept None meaning the default (0).

This commit is contained in:
Guido van Rossum 2007-06-07 21:56:45 +00:00
parent ad5b9de288
commit 46a05a7db5
2 changed files with 10 additions and 0 deletions

View file

@ -465,6 +465,8 @@ class Popen(object):
_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")