]> granicus.if.org Git - python/commit
Allow this script to act like a module by only calling main() if
authorBarry Warsaw <barry@python.org>
Sat, 16 Sep 2000 22:09:51 +0000 (22:09 +0000)
committerBarry Warsaw <barry@python.org>
Sat, 16 Sep 2000 22:09:51 +0000 (22:09 +0000)
commit64850efa39c7e0442718f599c27fade5c9282311
tree28556ab06ef4d75469f2dbffc89c286f04f37078
parent1cca9e29f97b4778e07e4a8948e0a677334f8560
Allow this script to act like a module by only calling main() if
__name__ == '__main__'.  Closes SF bug #110844.
Tools/scripts/ftpmirror.py