Staging
v0.5.1
https://github.com/python/cpython
Revision 296383b6d05f9617283aeb5b601106f84b016198 authored by Miss Islington (bot) on 19 January 2020, 22:44:04 UTC, committed by GitHub on 19 January 2020, 22:44:04 UTC

Update Misc/valgrind-python.supp to suppress the false alarm.
(cherry picked from commit d8ef64422a75f40cecdb1a7ee43492607d3daaf6)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
1 parent d96b7dd
Raw File
Tip revision: 296383b6d05f9617283aeb5b601106f84b016198 authored by Miss Islington (bot) on 19 January 2020, 22:44:04 UTC
bpo-35561: Supress valgrind false alarm on epoll_ctl(event) (GH-18060)
Tip revision: 296383b
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