Add 'if __name__ == "__main__":' to files already as a usable as a module.

This commit is contained in:
Johannes Gijsbers 2004-09-11 16:34:35 +00:00
parent 9324526a76
commit 7a8c43ee6a
13 changed files with 29 additions and 18 deletions

View file

@ -141,4 +141,5 @@ def add(dict, key, item):
else:
dict[key] = [item]
main()
if __name__ == "__main__":
main()