add parenthesis for python3 compatibility

This commit is contained in:
Yannick Koechlin 2014-10-29 22:37:54 +01:00
parent eef4d31a93
commit 594cf346a9

View File

@ -327,7 +327,7 @@ def main(argc, argv):
output = argv[2] output = argv[2]
with open(filename, "rU") as file_handle: with open(filename, "rU") as file_handle:
tree = ast.parse(file_handle.read()) tree = ast.parse(file_handle.read())
exec compile(tree, "<string>", "exec") exec(compile(tree, "<string>", "exec"))
table.generate(output) table.generate(output)
if __name__ == "__main__": if __name__ == "__main__":