Staging
v0.8.1
https://github.com/python/cpython
Revision a86a274b7224a5069f82c2d2cdd1f499d9c8dc22 authored by pxinwr on 28 November 2020, 22:04:50 UTC, committed by GitHub on 28 November 2020, 22:04:50 UTC


VxWorks has no user space shell provided so it can't support pipes module. Also add shell requirement for running test_pipes.
1 parent 996a1ef
Raw File
Tip revision: a86a274b7224a5069f82c2d2cdd1f499d9c8dc22 authored by pxinwr on 28 November 2020, 22:04:50 UTC
bpo-31904: add shell requirement for test_pipes (GH-23489)
Tip revision: a86a274
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