(source)
| 736 | # Replace any occurrences of '\r\n?' in the input string with '\n'. |
| 737 | # This converts DOS and Mac line endings to Unix line endings. |
| 738 | def _normalize_line_endings(source): |
| 739 | source = source.replace(b'\r\n', b'\n') |
| 740 | source = source.replace(b'\r', b'\n') |
| 741 | return source |
| 742 | |
| 743 | # Given a string buffer containing Python source code, compile it |
| 744 | # and return a code object. |
no test coverage detected
searching dependent graphs…