diff --git a/Library/Homebrew/cleanup.rb b/Library/Homebrew/cleanup.rb index 83d18ca333..ed776ec6dc 100644 --- a/Library/Homebrew/cleanup.rb +++ b/Library/Homebrew/cleanup.rb @@ -531,6 +531,7 @@ module Homebrew unused_pyc_files += pyc_files.reject { |k,| seen_non_pyc_file[k] } .values + .flatten return if unused_pyc_files.blank? unused_pyc_files.each do |pyc|