summaryrefslogtreecommitdiffstats
path: root/Doc/tools/custlib.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-10-07 12:50:05 (GMT)
committerFred Drake <fdrake@acm.org>2000-10-07 12:50:05 (GMT)
commit77878413bae310a1ebb172c83a9484ca55d48b17 (patch)
tree1a1f70fe0213c7c6e58bde33042c3b76a12a6729 /Doc/tools/custlib.py
parent5d64421c23d2f2a3c434e140085c7c81d0b65180 (diff)
downloadcpython-77878413bae310a1ebb172c83a9484ca55d48b17.zip
cpython-77878413bae310a1ebb172c83a9484ca55d48b17.tar.gz
cpython-77878413bae310a1ebb172c83a9484ca55d48b17.tar.bz2
Hush the nanny.
Diffstat (limited to 'Doc/tools/custlib.py')
-rw-r--r--Doc/tools/custlib.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/Doc/tools/custlib.py b/Doc/tools/custlib.py
index 32cb3d2..9958451 100644
--- a/Doc/tools/custlib.py
+++ b/Doc/tools/custlib.py
@@ -12,19 +12,19 @@ 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)
- modules[string.lower(base)]=base
+ path, file = os.path.split(file)
+ base, ext=os.path.splitext(file)
+ modules[string.lower(base)]=base
# 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')) )
+ 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)
- if base[-6:]=='module': base=base[:-6]
- modules[string.lower(base)]=base
+ path, file = os.path.split(file)
+ base, ext=os.path.splitext(file)
+ if base[-6:]=='module': base=base[:-6]
+ modules[string.lower(base)]=base
# Minor oddity: the types module is documented in libtypes2.tex
if modules.has_key('types'):
@@ -53,7 +53,7 @@ modules=mlist
print """\documentstyle[twoside,11pt,myformat]{report}
\\title{Python Library Reference}
\\input{boilerplate}
-\\makeindex % tell \\index to actually write the .idx file
+\\makeindex % tell \\index to actually write the .idx file
\\begin{document}
\\pagenumbering{roman}
\\maketitle
@@ -69,5 +69,5 @@ for modname in mlist:
print "\\input{lib%s}" % (modname,)
# Write the end
-print """\\input{custlib.ind} % Index
+print """\\input{custlib.ind} % Index
\\end{document}"""