Commit 64850efa authored by Barry Warsaw's avatar Barry Warsaw

Allow this script to act like a module by only calling main() if

__name__ == '__main__'.  Closes SF bug #110844.
parent 1cca9e29
......@@ -392,4 +392,6 @@ def writedict(dict, filename):
pass
os.rename(tempname, filename)
main()
if __name__ == '__main__':
main()
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