summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-04-02 22:18:25 (GMT)
committerGuido van Rossum <guido@python.org>1999-04-02 22:18:25 (GMT)
commitbd3bdde70bebd5f56f163dab7e6d8a04ff973013 (patch)
treeb087a9b3ea71277c38334eeae283972a776f56dd /Tools
parent8ff764f1134fb4f9ad79585e53805825ed36abb8 (diff)
downloadcpython-bd3bdde70bebd5f56f163dab7e6d8a04ff973013.zip
cpython-bd3bdde70bebd5f56f163dab7e6d8a04ff973013.tar.gz
cpython-bd3bdde70bebd5f56f163dab7e6d8a04ff973013.tar.bz2
For reasons I dare not explain, this script should always execute
main() when imported (in other words, it is not usable as a module).
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/dutree.py3
1 files changed, 1 insertions, 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()