Staging
v0.5.1
https://github.com/python/cpython
Revision 2b9d7abdbd4b41e2c624858f5bc80da59d8a681d authored by Gregory P. Smith on 08 May 2019, 19:20:59 UTC, committed by Ned Deily on 08 May 2019, 19:20:58 UTC
We updated the server, our testsuite must match.

https://bugs.python.org/issue36816

✈️ CLE -> DEN ✈️ GH-pycon2019
(cherry picked from commit 6bd81734de0b73f1431880d6a75fb71bcbc65fa1)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
1 parent c50d437
Raw File
Tip revision: 2b9d7abdbd4b41e2c624858f5bc80da59d8a681d authored by Gregory P. Smith on 08 May 2019, 19:20:59 UTC
[3.6] bpo-36816: Update the self-signed.pythontest.net cert (GH-13192) (GH-13198)
Tip revision: 2b9d7ab
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