]> granicus.if.org Git - python/commitdiff
For reasons I dare not explain, this script should always execute
authorGuido van Rossum <guido@python.org>
Fri, 2 Apr 1999 22:18:25 +0000 (22:18 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 2 Apr 1999 22:18:25 +0000 (22:18 +0000)
main() when imported (in other words, it is not usable as a module).

Tools/scripts/dutree.py

index 5912382a215fa1f2d087bb4f74a2d23b7551b738..5e78d6399ea4482e7b9ef91e7e87953982a8f36e 100755 (executable)
@@ -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()