keg: delete_pyc_files! should also remove __pycache__

This commit is contained in:
Chongyu Zhu 2018-03-08 13:02:03 +08:00
parent eee6e98d90
commit 3db033ca89
No known key found for this signature in database
GPG Key ID: 1A43E3C9100B38F5

View File

@ -519,6 +519,7 @@ class Keg
def delete_pyc_files!
find { |pn| pn.delete if %w[.pyc .pyo].include?(pn.extname) }
find { |pn| pn.delete if pn.basename.to_s == "__pycache__" }
end
private