Staging
v0.8.1
v0.8.1
Revision c072e258858bf3c125f1bce3ec27ddb176300d04 authored by Miss Islington (bot) on 08 March 2018, 04:35:52 UTC, committed by GitHub on 08 March 2018, 04:35:52 UTC
* fix a typo: documention -> documentation * fix the type of IPv?Network.hostmask * add documentation about IPv?Network.netmask * fix IPv6Network constructor doc that extended netmasks are not supported (cherry picked from commit e405096ea91f516d411095b6fea4eec9668eac88) Co-authored-by: Xiang Zhang <angwerzx@126.com>
1 parent d824b4e
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")
Computing file changes ...