Kaydet (Commit) 714f8782 authored tarafından Walter Dörwald's avatar Walter Dörwald

Fix typos.

üst 7a6dc139
...@@ -312,9 +312,9 @@ class StreamReader(Codec): ...@@ -312,9 +312,9 @@ class StreamReader(Codec):
self.atcr = data.endswith(u"\r") self.atcr = data.endswith(u"\r")
# If we're at a "\r" (and are allowed to read more), read one # If we're at a "\r" (and are allowed to read more), read one
# extra character (which might be a "\n") to get a proper # extra character (which might be a "\n") to get a proper
# line ending (If the stream is temporarily exhausted we return # line ending. (If the stream is temporarily exhausted we return
# the wrong line ending, but at least we won't generate a bogus # the wrong line ending, but at least we won't generate a bogus
# second line. # second line.)
if self.atcr and size is None: if self.atcr and size is None:
data += self.read(size=1, chars=1) data += self.read(size=1, chars=1)
self.atcr = data.endswith(u"\r") self.atcr = data.endswith(u"\r")
......
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