[Python-checkins] python/dist/src/Doc/tools custlib.py, 1.3,
1.4 keywords.py, 1.3, 1.4 prechm.py, 1.19, 1.20
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Sun Jul 18 08:25:18 CEST 2004
Update of /cvsroot/python/python/dist/src/Doc/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32520/tools
Modified Files:
custlib.py keywords.py prechm.py
Log Message:
Whitespace normalization, via reindent.py.
Index: custlib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/custlib.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** custlib.py 16 Oct 2002 14:59:02 -0000 1.3
--- custlib.py 18 Jul 2004 06:25:15 -0000 1.4
***************
*** 11,19 ****
for modname in sys.builtin_module_names:
modules[modname] = modname
!
for dir in sys.path:
# Look for *.py files
filelist = glob.glob(os.path.join(dir, '*.py'))
! for file in filelist:
path, file = os.path.split(file)
base, ext = os.path.splitext(file)
--- 11,19 ----
for modname in sys.builtin_module_names:
modules[modname] = modname
!
for dir in sys.path:
# Look for *.py files
filelist = glob.glob(os.path.join(dir, '*.py'))
! for file in filelist:
path, file = os.path.split(file)
base, ext = os.path.splitext(file)
***************
*** 21,28 ****
# Look for shared library files
! filelist = (glob.glob(os.path.join(dir, '*.so')) +
glob.glob(os.path.join(dir, '*.sl')) +
glob.glob(os.path.join(dir, '*.o')) )
! for file in filelist:
path, file = os.path.split(file)
base, ext = os.path.splitext(file)
--- 21,28 ----
# Look for shared library files
! filelist = (glob.glob(os.path.join(dir, '*.so')) +
glob.glob(os.path.join(dir, '*.sl')) +
glob.glob(os.path.join(dir, '*.o')) )
! for file in filelist:
path, file = os.path.split(file)
base, ext = os.path.splitext(file)
***************
*** 55,59 ****
# Write the boilerplate
! # XXX should be fancied up.
print """\documentstyle[twoside,11pt,myformat]{report}
\\title{Python Library Reference}
--- 55,59 ----
# Write the boilerplate
! # XXX should be fancied up.
print """\documentstyle[twoside,11pt,myformat]{report}
\\title{Python Library Reference}
***************
*** 70,77 ****
{\\parskip = 0mm \\tableofcontents}
\\pagebreak\\pagenumbering{arabic}"""
!
! for modname in mlist:
print "\\input{lib%s}" % (modname,)
!
# Write the end
print """\\input{custlib.ind} % Index
--- 70,77 ----
{\\parskip = 0mm \\tableofcontents}
\\pagebreak\\pagenumbering{arabic}"""
!
! for modname in mlist:
print "\\input{lib%s}" % (modname,)
!
# Write the end
print """\\input{custlib.ind} % Index
Index: keywords.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/keywords.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** keywords.py 16 Oct 2002 15:27:02 -0000 1.3
--- keywords.py 18 Jul 2004 06:25:15 -0000 1.4
***************
*** 5,19 ****
l = []
try:
! while 1:
! l = l + raw_input().split()
except EOFError:
! pass
l.sort()
for x in l[:]:
! while l.count(x) > 1: l.remove(x)
ncols = 5
nrows = (len(l)+ncols-1)/ncols
for i in range(nrows):
! for j in range(i, len(l), nrows):
! print l[j].ljust(10),
! print
--- 5,19 ----
l = []
try:
! while 1:
! l = l + raw_input().split()
except EOFError:
! pass
l.sort()
for x in l[:]:
! while l.count(x) > 1: l.remove(x)
ncols = 5
nrows = (len(l)+ncols-1)/ncols
for i in range(nrows):
! for j in range(i, len(l), nrows):
! print l[j].ljust(10),
! print
Index: prechm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/prechm.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** prechm.py 18 Jun 2004 08:27:36 -0000 1.19
--- prechm.py 18 Jul 2004 06:25:15 -0000 1.20
***************
*** 439,444 ****
def usage():
! print usage_mode
! sys.exit(0)
def do_it(args = None):
--- 439,444 ----
def usage():
! print usage_mode
! sys.exit(0)
def do_it(args = None):
More information about the Python-checkins
mailing list