Commit 84730b83 authored by Denis Bilenko's avatar Denis Bilenko

fileobject: fix a logic bug in universal newlines reading

parent 9c1cf1c7
......@@ -126,8 +126,8 @@ else:
if not self._translate or not data:
return data
if self._eat_newline:
self._eat_newline = False
if data.startswith('\n'):
self._eat_newline = False
data = data[1:]
if not data:
return self.recv(size)
......
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