(cls, string_iterable)
| 255 | |
| 256 | @classmethod |
| 257 | def _guess_eol(cls, string_iterable): |
| 258 | first_line = cls._get_first_line(string_iterable) |
| 259 | for eol in ('\r\n', '\r', '\n'): |
| 260 | if first_line.endswith(eol): |
| 261 | return eol |
| 262 | return os.linesep |
| 263 | |
| 264 | @classmethod |
| 265 | def _get_first_line(cls, string_iterable): |