From: Guido van Rossum Date: Fri, 2 Apr 1999 22:18:25 +0000 (+0000) Subject: For reasons I dare not explain, this script should always execute X-Git-Tag: v1.5.2c1~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd3bdde70bebd5f56f163dab7e6d8a04ff973013;p=python For reasons I dare not explain, this script should always execute main() when imported (in other words, it is not usable as a module). --- diff --git a/Tools/scripts/dutree.py b/Tools/scripts/dutree.py index 5912382a21..5e78d6399e 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()