Staging
v0.5.1
v0.5.1
Revision 6a89481680b921e7b317c29877bdda9a6031e5ad authored by Nir Soffer on 01 December 2017, 01:18:58 UTC, committed by Victor Stinner on 01 December 2017, 01:18:58 UTC
In _io_FileIO_readall_impl(), lseek() and _Py_fstat_noraise() were called without releasing the GIL. This can cause all threads to hang for unlimited time when calling FileIO.read() and the NFS server is not accessible.
1 parent c319eee
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 ...