Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd3bdde

Browse files
committed
For reasons I dare not explain, this script should always execute
main() when imported (in other words, it is not usable as a module).
1 parent 8ff764f commit bd3bdde

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Tools/scripts/dutree.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,4 @@ def show(total, d, prefix):
5656
if d.has_key(key):
5757
show(tsub, d[key][1], psub)
5858

59-
if __name__ == "__main__":
60-
main()
59+
main()

0 commit comments

Comments
 (0)