From bd3bdde70bebd5f56f163dab7e6d8a04ff973013 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 2 Apr 1999 22:18:25 +0000 Subject: For reasons I dare not explain, this script should always execute main() when imported (in other words, it is not usable as a module). --- Tools/scripts/dutree.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tools/scripts/dutree.py b/Tools/scripts/dutree.py index 5912382..5e78d63 100755 --- a/Tools/scripts/dutree.py +++ b/Tools/scripts/dutree.py @@ -56,5 +56,4 @@ def show(total, d, prefix): if d.has_key(key): show(tsub, d[key][1], psub) -if __name__ == "__main__": - main() +main() -- cgit v0.12