From 4e051d459d7befbba539a0b08b11d70c33494419 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Thu, 9 Jan 2003 10:47:20 +0000 Subject: [PATCH] add newline to source before compilation --- Lib/plat-mac/buildtools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/plat-mac/buildtools.py b/Lib/plat-mac/buildtools.py index 01b5392e6c..81a086b241 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: -- 2.40.0