Kaydet (Commit) 4e051d45 authored tarafından Just van Rossum's avatar Just van Rossum

add newline to source before compilation

üst 00372023
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment