summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2005-03-28 01:08:02 (GMT)
committerTim Peters <tim.peters@gmail.com>2005-03-28 01:08:02 (GMT)
commiteba28bea9b8ef7df010e65c630b8c0f7009c6005 (patch)
tree9ec2d5adb6886c2577a8c20e4e51d6d7ed393ec4 /Lib/subprocess.py
parent700f36c7520bffef73d86088fa80b7a1c62c416a (diff)
downloadcpython-eba28bea9b8ef7df010e65c630b8c0f7009c6005.zip
cpython-eba28bea9b8ef7df010e65c630b8c0f7009c6005.tar.gz
cpython-eba28bea9b8ef7df010e65c630b8c0f7009c6005.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index e72e260..783f617 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -626,14 +626,14 @@ class Popen(object):
process to terminate. The optional input argument should be a
string to be sent to the child process, or None, if no data
should be sent to the child.
-
+
communicate() returns a tuple (stdout, stderr)."""
# Optimization: If we are only using one pipe, or no pipe at
# all, using select() or threads is unnecessary.
if [self.stdin, self.stdout, self.stderr].count(None) >= 2:
- stdout = None
- stderr = None
+ stdout = None
+ stderr = None
if self.stdin:
if input:
self.stdin.write(input)
@@ -644,7 +644,7 @@ class Popen(object):
stderr = self.stderr.read()
self.wait()
return (stdout, stderr)
-
+
return self._communicate(input)