diff options
author | Just van Rossum <just@letterror.com> | 2003-01-09 10:47:20 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2003-01-09 10:47:20 (GMT) |
commit | 4e051d459d7befbba539a0b08b11d70c33494419 (patch) | |
tree | 2c256760c859933a68b412bc412fb80afb2ace67 /Lib | |
parent | 003720235bca513617d10b6c61f1744139c7cd0a (diff) | |
download | cpython-4e051d459d7befbba539a0b08b11d70c33494419.zip cpython-4e051d459d7befbba539a0b08b11d70c33494419.tar.gz cpython-4e051d459d7befbba539a0b08b11d70c33494419.tar.bz2 |
add newline to source before compilation
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/plat-mac/buildtools.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ def process(template, filename, destname, copy_codefragment, 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: |