diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-07-18 06:25:50 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-07-18 06:25:50 (GMT) |
commit | 3d7d372ce326602b274f44338168688eeb907a3b (patch) | |
tree | 221b3b3ae862fe0b1d068efb97700b55bf0018cf /Doc/tools/custlib.py | |
parent | 182b5aca27d376b08a2904bed42b751496f932f3 (diff) | |
download | cpython-3d7d372ce326602b274f44338168688eeb907a3b.zip cpython-3d7d372ce326602b274f44338168688eeb907a3b.tar.gz cpython-3d7d372ce326602b274f44338168688eeb907a3b.tar.bz2 |
Whitespace normalization, via reindent.py.
Diffstat (limited to 'Doc/tools/custlib.py')
-rw-r--r-- | Doc/tools/custlib.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Doc/tools/custlib.py b/Doc/tools/custlib.py index 7898928..15f07ba 100644 --- a/Doc/tools/custlib.py +++ b/Doc/tools/custlib.py @@ -10,20 +10,20 @@ modules = {} 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: + for file in filelist: path, file = os.path.split(file) base, ext = os.path.splitext(file) modules[base.lower()] = base # Look for shared library files - filelist = (glob.glob(os.path.join(dir, '*.so')) + + 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: + for file in filelist: path, file = os.path.split(file) base, ext = os.path.splitext(file) if base[-6:] == 'module': @@ -54,7 +54,7 @@ modules = mlist # Phase III: write custlib.tex # Write the boilerplate -# XXX should be fancied up. +# XXX should be fancied up. print """\documentstyle[twoside,11pt,myformat]{report} \\title{Python Library Reference} \\input{boilerplate} @@ -69,10 +69,10 @@ print """\documentstyle[twoside,11pt,myformat]{report} \\pagebreak {\\parskip = 0mm \\tableofcontents} \\pagebreak\\pagenumbering{arabic}""" - -for modname in mlist: + +for modname in mlist: print "\\input{lib%s}" % (modname,) - + # Write the end print """\\input{custlib.ind} % Index \\end{document}""" |