Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e051d4

Browse files
committed
add newline to source before compilation
1 parent 0037202 commit 4e051d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/plat-mac/buildtools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def process(template, filename, destname, copy_codefragment,
8585
text = fp.read()
8686
fp.close()
8787
try:
88-
code = compile(text, filename, "exec")
88+
code = compile(text + '\n', filename, "exec")
8989
except SyntaxError, arg:
9090
raise BuildError, "Syntax error in script %s: %s" % (filename, arg)
9191
except EOFError:

0 commit comments

Comments
 (0)