summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pty.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_pty.py')
-rw-r--r--Lib/test/test_pty.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_pty.py b/Lib/test/test_pty.py
index e2058ab..58a3041 100644
--- a/Lib/test/test_pty.py
+++ b/Lib/test/test_pty.py
@@ -157,7 +157,8 @@ class PtyTest(unittest.TestCase):
break
if not data:
break
- sys.stdout.write(data.replace('\r\n', '\n').decode('ascii'))
+ sys.stdout.write(str(data.replace(b'\r\n', b'\n'),
+ encoding='ascii'))
##line = os.read(master_fd, 80)
##lines = line.replace('\r\n', '\n').split('\n')