summaryrefslogtreecommitdiff
path: root/Lib/pty.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2008-09-15 23:02:56 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2008-09-15 23:02:56 +0000
commit9cadb1b6e0d10aaeb8f9e69e51f672a53de6b164 (patch)
treee39eac97c8d501a20d6f336ccddcc169f585271d /Lib/pty.py
parent4e80cdd739772406bba00a31fdd98539cdcca651 (diff)
downloadcpython-git-9cadb1b6e0d10aaeb8f9e69e51f672a53de6b164.tar.gz
Issue #3782: os.write() must not accept unicode strings
Diffstat (limited to 'Lib/pty.py')
-rw-r--r--Lib/pty.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pty.py b/Lib/pty.py
index 487382725e..810ebd8228 100644
--- a/Lib/pty.py
+++ b/Lib/pty.py
@@ -129,7 +129,7 @@ def fork():
def _writen(fd, data):
"""Write all the data to a descriptor."""
- while data != '':
+ while data:
n = os.write(fd, data)
data = data[n:]