summaryrefslogtreecommitdiffstats
path: root/Demo/scripts/mboxconvert.py
diff options
context:
space:
mode:
authorJohannes Gijsbers <jlg@dds.nl>2004-09-11 16:34:35 (GMT)
committerJohannes Gijsbers <jlg@dds.nl>2004-09-11 16:34:35 (GMT)
commit7a8c43ee6a1f9c50bec8cc5234eff8b1d5e61088 (patch)
treeeaff8edea3793ee407b424b9096c443b9a0d06ec /Demo/scripts/mboxconvert.py
parent9324526a7658c5450eba24b48065d87d5db5ab1f (diff)
downloadcpython-7a8c43ee6a1f9c50bec8cc5234eff8b1d5e61088.zip
cpython-7a8c43ee6a1f9c50bec8cc5234eff8b1d5e61088.tar.gz
cpython-7a8c43ee6a1f9c50bec8cc5234eff8b1d5e61088.tar.bz2
Add 'if __name__ == "__main__":' to files already as a usable as a module.
Diffstat (limited to 'Demo/scripts/mboxconvert.py')
-rwxr-xr-xDemo/scripts/mboxconvert.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Demo/scripts/mboxconvert.py b/Demo/scripts/mboxconvert.py
index ba1f734..502d774 100755
--- a/Demo/scripts/mboxconvert.py
+++ b/Demo/scripts/mboxconvert.py
@@ -120,4 +120,5 @@ def message(f, delimiter = ''):
print
return sts
-main()
+if __name__ == "__main__":
+ main()