From 46a05a7db5a65ebee04a43e0394672a72b37ffa1 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 7 Jun 2007 21:56:45 +0000 Subject: The bufsize argument to Popen() should accept None meaning the default (0). --- Lib/subprocess.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Lib/subprocess.py') diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 051f2d46fb..1ae74268a2 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -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") -- cgit v1.2.1