Check if *char* is a line terminator.
(self, char)
| 302 | self.stream.flush() |
| 303 | |
| 304 | def is_eol(self, char): |
| 305 | """Check if *char* is a line terminator.""" |
| 306 | return char in ('\r', '\n') |
| 307 | |
| 308 | def is_eof(self, char): |
| 309 | """Check if *char* is a file terminator.""" |