From 441f7f4576d6d257419d6e8ab7cfdf5ee240a062 Mon Sep 17 00:00:00 2001 From: Samuel John Date: Tue, 4 Jun 2013 21:47:22 +0200 Subject: [PATCH] python_helper style bit --- Library/Homebrew/python_helper.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/python_helper.rb b/Library/Homebrew/python_helper.rb index efc5a12a72..d17bbaceee 100644 --- a/Library/Homebrew/python_helper.rb +++ b/Library/Homebrew/python_helper.rb @@ -47,7 +47,9 @@ def python_helper(options={:allowed_major_versions => [2, 3]}, &block) python_reqs.sort_by{ |py| py.version }.map do |py| # Now is the time to set the site_packages to the correct value py.site_packages = lib/py.xy/'site-packages' - if block_given? + if !block_given? + return py + else puts "brew: Python block (#{py.binary})..." if ARGV.verbose? && ARGV.debug? require 'superenv' # Ensure env changes are only temporary by using `with_build_environment` @@ -70,9 +72,6 @@ def python_helper(options={:allowed_major_versions => [2, 3]}, &block) @current_python = nil res end - else - # We return the first available python, because no block_given? - return py end end end