Commit e6559cd5 by willmcgugan@gmail.com

Fix for read(0)

parent e3632b73
...@@ -443,7 +443,7 @@ class FileLikeBase(object): ...@@ -443,7 +443,7 @@ class FileLikeBase(object):
s -= self._bufsize s -= self._bufsize
self._do_read(s) self._do_read(s)
# Should the entire file be read? # Should the entire file be read?
if size <= 0: if size < 0:
if self._rbuffer: if self._rbuffer:
data = [self._rbuffer] data = [self._rbuffer]
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment