[Python-checkins] commit of r41414 - python/trunk/Demo/comparisons

neal.norwitz@python.org neal.norwitz at python.org
Wed Nov 9 08:07:59 CET 2005


Author: neal.norwitz
Date: Wed Nov  9 08:07:58 2005
New Revision: 41414

Modified:
   python/trunk/Demo/comparisons/regextest.py
Log:
SF Bug #1348477, regextest can't be pydoc'ed.  Will backport.

Modified: python/trunk/Demo/comparisons/regextest.py
==============================================================================
--- python/trunk/Demo/comparisons/regextest.py	(original)
+++ python/trunk/Demo/comparisons/regextest.py	Wed Nov  9 08:07:58 2005
@@ -43,4 +43,5 @@
 def chomp(s):
     return s.rstrip('\n')
 
-main()
+if __name__ == '__main__':
+    main()


More information about the Python-checkins mailing list