summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-07-01 19:28:43 (GMT)
committerGeorg Brandl <georg@python.org>2008-07-01 19:28:43 (GMT)
commit1abcbf8e193019b16f5a7e71c176667fb679baab (patch)
tree9c475f226c72ae725f4cbfdc0613c50fd5f3b5bc /Lib/subprocess.py
parentc22ed14ddd640f206e1e334fcb4ed4ab4de0951e (diff)
downloadcpython-1abcbf8e193019b16f5a7e71c176667fb679baab.zip
cpython-1abcbf8e193019b16f5a7e71c176667fb679baab.tar.gz
cpython-1abcbf8e193019b16f5a7e71c176667fb679baab.tar.bz2
#2683: Popen.communicate() argument must be bytes.
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index d9c76d8..8df1034 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -883,8 +883,6 @@ class Popen(object):
if self.stdin:
if input is not None:
- if isinstance(input, str):
- input = input.encode()
self.stdin.write(input)
self.stdin.close()
@@ -1129,10 +1127,6 @@ class Popen(object):
def _communicate(self, input):
- if self.stdin:
- if isinstance(input, str): # Unicode
- input = input.encode("utf-8") # XXX What else?
- input = bytes(input)
read_set = []
write_set = []
stdout = None # Return