homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yac
Recipients ezio.melotti, vstinner, yac
Date 2015年07月03日.15:12:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1435936324.39.0.622709208254.issue24560@psf.upfronthosting.co.za>
In-reply-to
Content
File "/usr/lib64/python3.4/codecs.py", line 490, in read
 data = self.bytebuffer + newdata
TypeError: can't concat bytes to NoneType
 if size < 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
History
Date User Action Args
2015年07月03日 15:12:04yacsetrecipients: + yac, vstinner, ezio.melotti
2015年07月03日 15:12:04yacsetmessageid: <1435936324.39.0.622709208254.issue24560@psf.upfronthosting.co.za>
2015年07月03日 15:12:04yaclinkissue24560 messages
2015年07月03日 15:12:04yaccreate

AltStyle によって変換されたページ (->オリジナル) /