(source)
| 728 | # Replace any occurrences of '\r\n?' in the input string with '\n'. |
| 729 | # This converts DOS and Mac line endings to Unix line endings. |
| 730 | def _normalize_line_endings(source): |
| 731 | source = source.replace(b'\r\n', b'\n') |
| 732 | source = source.replace(b'\r', b'\n') |
| 733 | return source |
| 734 | |
| 735 | # Given a string buffer containing Python source code, compile it |
| 736 | # and return a code object. |
no test coverage detected