diff options
| author | Johannes Gijsbers <jlg@dds.nl> | 2004-09-11 16:34:35 +0000 | 
|---|---|---|
| committer | Johannes Gijsbers <jlg@dds.nl> | 2004-09-11 16:34:35 +0000 | 
| commit | 7a8c43ee6a1f9c50bec8cc5234eff8b1d5e61088 (patch) | |
| tree | eaff8edea3793ee407b424b9096c443b9a0d06ec /Demo/scripts/ftpstats.py | |
| parent | 9324526a7658c5450eba24b48065d87d5db5ab1f (diff) | |
| download | cpython-git-7a8c43ee6a1f9c50bec8cc5234eff8b1d5e61088.tar.gz | |
Add 'if __name__ == "__main__":' to files already as a usable as a module.
Diffstat (limited to 'Demo/scripts/ftpstats.py')
| -rwxr-xr-x | Demo/scripts/ftpstats.py | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/Demo/scripts/ftpstats.py b/Demo/scripts/ftpstats.py index 13d055313a..b37a58d9bd 100755 --- a/Demo/scripts/ftpstats.py +++ b/Demo/scripts/ftpstats.py @@ -141,4 +141,5 @@ def add(dict, key, item):      else:          dict[key] = [item] -main() +if __name__ == "__main__": +    main()  | 
