summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-11-09 07:07:58 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2005-11-09 07:07:58 (GMT)
commit286d74764ef5fa9aac2f5106dc65834e8309a810 (patch)
tree792b465cea1011181258400af4396046c198b5f9 /Demo
parent67715f042096b4f77e359823f2c8d330f2b965b9 (diff)
downloadcpython-286d74764ef5fa9aac2f5106dc65834e8309a810.zip
cpython-286d74764ef5fa9aac2f5106dc65834e8309a810.tar.gz
cpython-286d74764ef5fa9aac2f5106dc65834e8309a810.tar.bz2
SF Bug #1348477, regextest can't be pydoc'ed. Will backport.
Diffstat (limited to 'Demo')
-rwxr-xr-xDemo/comparisons/regextest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Demo/comparisons/regextest.py b/Demo/comparisons/regextest.py
index fbc5f6c..b27d741 100755
--- a/Demo/comparisons/regextest.py
+++ b/Demo/comparisons/regextest.py
@@ -43,4 +43,5 @@ def main():
def chomp(s):
return s.rstrip('\n')
-main()
+if __name__ == '__main__':
+ main()