Staging
v0.5.1
https://github.com/python/cpython
Revision 786addd9d07b6c712b8ea9ee06e1f9f41c1b67a1 authored by Gregory P. Smith on 21 October 2020, 00:37:20 UTC, committed by GitHub on 21 October 2020, 00:37:20 UTC
Several buildbots are failing on these, likely due to an inability to
set the pipe size to the desired test value.
1 parent 7cdf30f
Raw File
Tip revision: 786addd9d07b6c712b8ea9ee06e1f9f41c1b67a1 authored by Gregory P. Smith on 21 October 2020, 00:37:20 UTC
bpo-41586: Attempt to make the pipesize tests more robust. (GH-22839)
Tip revision: 786addd
rmpyc.py
# Remove all the .pyc files under ../Lib.


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

    npyc = 0
    for root, dirs, files in os.walk(root):
        for name in files:
            # to be thorough
            if name.endswith(('.pyc', '.pyo')):
                npyc += 1
                os.remove(join(root, name))

    return npyc

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