commit | 4e051d459d7befbba539a0b08b11d70c33494419 | [log] [tgz] |
---|---|---|
author | Just van Rossum <just@letterror.com> | Thu Jan 09 10:47:20 2003 +0000 |
committer | Just van Rossum <just@letterror.com> | Thu Jan 09 10:47:20 2003 +0000 |
tree | 2c256760c859933a68b412bc412fb80afb2ace67 | |
parent | 003720235bca513617d10b6c61f1744139c7cd0a [diff] [blame] |
add newline to source before compilation
diff --git a/Lib/plat-mac/buildtools.py b/Lib/plat-mac/buildtools.py index 01b5392..81a086b 100644 --- a/Lib/plat-mac/buildtools.py +++ b/Lib/plat-mac/buildtools.py
@@ -85,7 +85,7 @@ text = fp.read() fp.close() try: - code = compile(text, filename, "exec") + code = compile(text + '\n', filename, "exec") except SyntaxError, arg: raise BuildError, "Syntax error in script %s: %s" % (filename, arg) except EOFError: