mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Note that readframes() returns data in linear format, even if the original
is encoded in u-LAW format. Based on suggestion from Anthony Baxter <anthony_baxter@users.sourceforge.net>. This closes bug #122273.
This commit is contained in:
parent
aa126e1e21
commit
2ed27d3189
8 changed files with 101 additions and 10 deletions
|
@ -8,18 +8,24 @@
|
|||
|
||||
"""%(program)s - list modules in the Python standard library
|
||||
|
||||
-a, --annotate Annotate the module names with the subdirectory they live in
|
||||
-a, --annotate Annotate the module names with the subdirectory they
|
||||
live in
|
||||
-c, --categorize Group the modules by subdirectory
|
||||
-i <file>,
|
||||
--ignore-from <file> Ignore the modules listed in <file>. <file> may contain
|
||||
a list of module names or a module index file as produced
|
||||
when formatting the Python documentation (.idx flavor).
|
||||
|
||||
If neither -a nor -c are given, the modules are listed in alphabetical order.
|
||||
--ignore-from <file> Ignore the modules listed in <file>. <file> may
|
||||
contain a list of module names or a module index file
|
||||
as produced when formatting the Python documentation
|
||||
(.idx or .html flavor).
|
||||
|
||||
If neither -a nor -c are given, the modules are listed in alphabetical
|
||||
order.
|
||||
|
||||
Note that -a and -c are mutually exclusive.
|
||||
|
||||
Limitation: Modules loadable as shared objects are not listed.
|
||||
Limitation: Modules loadable as shared objects may not be listed,
|
||||
though this script attempts to locate such modules.
|
||||
|
||||
"""
|
||||
|
||||
__version__ = '$Revision$'
|
||||
|
@ -32,7 +38,8 @@ import string
|
|||
import sys
|
||||
|
||||
|
||||
REMOVE_DIRS = ["dos-8x3", "lib-old", "lib-stdwin", "test"]
|
||||
REMOVE_DIRS = ["dos-8x3", "encodings", "distutils",
|
||||
"lib-old", "lib-stdwin", "test"]
|
||||
|
||||
|
||||
def main():
|
||||
|
@ -86,7 +93,7 @@ def main():
|
|||
if not ignore(name):
|
||||
modules_by_name[name] = "<built-in>"
|
||||
l.append(name)
|
||||
rx = re.compile("Lib/plat-[a-z0-9]*/", re.IGNORECASE)
|
||||
rx = re.compile("Lib/plat-[a-zA-Z0-9]*/")
|
||||
fp = os.popen("find Lib -name \*.py -print", "r")
|
||||
while 1:
|
||||
line = fp.readline()
|
||||
|
|
|
@ -78,6 +78,8 @@
|
|||
<macro name="optional">
|
||||
<content/>
|
||||
</macro>
|
||||
<macro name="unspecified"/>
|
||||
<macro name="moreargs"/>
|
||||
<environment name="classdesc">
|
||||
<attribute name="name"/>
|
||||
<child name="args"/>
|
||||
|
@ -409,6 +411,15 @@
|
|||
</text>
|
||||
<child name="entry"/>
|
||||
</environment>
|
||||
<environment name="longtableii" outputname="table">
|
||||
<attribute name="cols">2</attribute>
|
||||
<attribute name="colspec"/>
|
||||
<attribute name="style"/>
|
||||
<child name="entry"/>
|
||||
<text>
|
||||
</text>
|
||||
<child name="entry"/>
|
||||
</environment>
|
||||
<macro name="lineii" outputname="row">
|
||||
<child name="entry"/>
|
||||
<text>
|
||||
|
@ -428,6 +439,18 @@
|
|||
</text>
|
||||
<child name="entry"/>
|
||||
</environment>
|
||||
<environment name="longtableiii" outputname="table">
|
||||
<attribute name="cols">3</attribute>
|
||||
<attribute name="colspec"/>
|
||||
<attribute name="style"/>
|
||||
<child name="entry"/>
|
||||
<text>
|
||||
</text>
|
||||
<child name="entry"/>
|
||||
<text>
|
||||
</text>
|
||||
<child name="entry"/>
|
||||
</environment>
|
||||
<macro name="lineiii" outputname="row">
|
||||
<child name="entry"/>
|
||||
<text>
|
||||
|
@ -453,6 +476,21 @@
|
|||
</text>
|
||||
<child name="entry"/>
|
||||
</environment>
|
||||
<environment name="longtableiv" outputname="table">
|
||||
<attribute name="cols">4</attribute>
|
||||
<attribute name="colspec"/>
|
||||
<attribute name="style"/>
|
||||
<child name="entry"/>
|
||||
<text>
|
||||
</text>
|
||||
<child name="entry"/>
|
||||
<text>
|
||||
</text>
|
||||
<child name="entry"/>
|
||||
<text>
|
||||
</text>
|
||||
<child name="entry"/>
|
||||
</environment>
|
||||
<macro name="lineiv" outputname="row">
|
||||
<child name="entry"/>
|
||||
<text>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue