You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bpo-13322: The io module doesn't support non-blocking files
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-10-10.08:29:35.445>created_at=<Date2015-07-03.15:12:04.370>labels= ['3.7', 'expert-unicode']
title="codecs.StreamReader doesn't work with nonblocking streams: TypeError: can't concat bytes to NoneType"updated_at=<Date2019-10-10.08:29:35.441>user='https://bugs.python.org/yac'
File "/usr/lib64/python3.4/codecs.py", line 490, in read
data = self.bytebuffer + newdata
TypeError: can't concat bytes to NoneType
ifsize<0:
newdata=self.stream.read()
else:
newdata=self.stream.read(size)
# decode bytes (those remaining from the last call included)data=self.bytebuffer+newdata
if self.stream is nonblocking, it's read will return None (py3, py2 raises IOError(EGAIN)).
Simple if newdata is None: return None should fix that I guess
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: