Staging
v0.8.1
https://github.com/python/cpython
Revision 758f5ea4194a2aa6d7d01c47d1558b45ec3f5fc2 authored by Fred Drake on 11 November 2004, 05:04:55 UTC, committed by Fred Drake on 11 November 2004, 05:04:55 UTC
environments.

Closes SF bug #692442: Konqueror can't render docs because of
malformed HTML.  While the generated HTML is still terrible, the cited
cases of <DL COMPACT> have been removed.  The general problem of XHTML
conformance has not been solved, but is endemic to LaTeX2HTML output.
1 parent 52c937d
Raw File
Tip revision: 758f5ea4194a2aa6d7d01c47d1558b45ec3f5fc2 authored by Fred Drake on 11 November 2004, 05:04:55 UTC
Replace last two uses of the "list" environment with "description"
Tip revision: 758f5ea
rmpyc.py
# Remove all the .pyc and .pyo files under ../Lib.


def deltree(root):
    import os
    from os.path import join

    npyc = npyo = 0
    for root, dirs, files in os.walk(root):
        for name in files:
            delete = False
            if name.endswith('.pyc'):
                delete = True
                npyc += 1
            elif name.endswith('.pyo'):
                delete = True
                npyo += 1

            if delete:
                os.remove(join(root, name))

    return npyc, npyo

npyc, npyo = deltree("../Lib")
print npyc, ".pyc deleted,", npyo, ".pyo deleted"
back to top