[Patches] [ python-Patches-1005491 ] use __name__ == '__main__' in tools/scripts (bug #624893)

SourceForge.net noreply at sourceforge.net
Mon Aug 9 19:31:41 CEST 2004


Patches item #1005491, was opened at 2004-08-08 08:32
Message generated for change (Comment added) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1005491&group_id=5470

Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Johannes Gijsbers (jlgijsbers)
>Assigned to: A.M. Kuchling (akuchling)
Summary: use __name__ == '__main__' in tools/scripts (bug #624893)

Initial Comment:
Many scripts in Tools/scripts don't use the __name__ ==
'__main__' check before running. This means pydoc can't
show their documentation. This patch adds this check to
all files in Tools/scripts and, for some, puts most of
the script in a main() function.

This fixes http://python.org/sf/624893.

----------------------------------------------------------------------

>Comment By: A.M. Kuchling (akuchling)
Date: 2004-08-09 13:31

Message:
Logged In: YES 
user_id=11375

I was surprised to see that you haven't got checkin
privileges (or did I miss your ID on the SF list?); have you
considered requesting privileges?

Committed to CVS head as the following revisions:

byteyears.py: 1.11, checkpyc.py: 1.11, classfix.py: 1.14,
copytime.py:
1.6, crlf.py: 1.5, cvsfiles.py: 1.6, diff.py: 1.3,
dutree.py: 1.14,
findlinksto.py: 1.10, fixcid.py: 1.12, fixheader.py: 1.7,
fixps.py:
1.8, google.py: 1.3, gprof2html.py: 1.2, h2py.py: 1.19,
idle: 1.2,
ifdef.py: 1.7, lfcr.py: 1.5, linktree.py: 1.7, lll.py: 1.6,
logmerge.py: 1.13, methfix.py: 1.9, mkreal.py: 1.8,
objgraph.py: 1.8, pathfix.py: 1.7, pdeps.py: 1.7, ptags.py:
1.9, pydoc: 1.3,
pydocgui.pyw: 1.2, setup.py: 1.4, suff.py: 1.8, treesync.py:
1.7,
which.py: 1.14, xxci.py: 1.16


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1005491&group_id=5470


More information about the Patches mailing list