From 2d2f22813d682a69a542640df95eaf36110290df Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 30 May 2014 12:38:30 -0500 Subject: Prefer Dir[] to Dir.glob when not passing a block --- Library/Formula/python3.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Library/Formula/python3.rb') diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb index 5166c6d10..96162e3b0 100644 --- a/Library/Formula/python3.rb +++ b/Library/Formula/python3.rb @@ -111,9 +111,7 @@ class Python3 < Formula system "make", "quicktest" if build.include? "quicktest" # Any .app get a " 3" attached, so it does not conflict with python 2.x. - Dir.glob(prefix/"*.app").each do |app| - mv app, app.gsub(".app", " 3.app") - end + Dir.glob("#{prefix}/*.app") { |app| mv app, app.sub(".app", " 3.app") } # A fix, because python and python3 both want to install Python.framework # and therefore we can't link both into HOMEBREW_PREFIX/Frameworks -- cgit v1.2.3