diff options
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r-- | Lib/subprocess.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 1ae74268a27..362d59ad15f 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -553,8 +553,8 @@ class Popen(object): def _translate_newlines(self, data): - data = data.replace("\r\n", "\n") - data = data.replace("\r", "\n") + data = data.replace(b"\r\n", b"\n") + data = data.replace(b"\r", b"\n") return str(data) |