Revert "keg: tweak delete_pyc_files!"
This reverts commit 8e928992f5d2a1bbc39b295e2d2a9a2565ecec2a.
This commit is contained in:
parent
e906ec374b
commit
6788e78c03
@ -522,11 +522,8 @@ class Keg
|
|||||||
end
|
end
|
||||||
|
|
||||||
def delete_pyc_files!
|
def delete_pyc_files!
|
||||||
find do |path|
|
find { |pn| pn.delete if %w[.pyc .pyo].include?(pn.extname) }
|
||||||
if %w[.pyc .pyo].include?(pn.extname) || pn.basename.to_s == "__pycache__"
|
find { |pn| pn.delete if pn.basename.to_s == "__pycache__" }
|
||||||
path.delete
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user