aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-09-14 12:21:45 +0100
committerMike McQuaid2013-09-14 12:21:49 +0100
commit7b722a67bb653088fd022f25c7e3823482857e4a (patch)
tree1251f426d7471e6595854c3456956783332dd70f /Library
parent0675ba29464fd9600f83eafff2df5c8e993d7533 (diff)
downloadhomebrew-7b722a67bb653088fd022f25c7e3823482857e4a.tar.bz2
PythonHelper: move old_env outside begin block.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/python_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/python_helper.rb b/Library/Homebrew/python_helper.rb
index d91bd7d2f..a8389cee7 100644
--- a/Library/Homebrew/python_helper.rb
+++ b/Library/Homebrew/python_helper.rb
@@ -56,8 +56,8 @@ def python_helper(options={:allowed_major_versions => [2, 3]}, &block)
puts "brew: Python block (#{py.binary})..." if ARGV.verbose? && ARGV.debug?
# Ensure env changes are only temporary:
+ old_env = ENV.to_hash
begin
- old_env = ENV.to_hash
# In order to install into the `Cellar`, the dir must exist and be in the
# `PYTHONPATH`. This will be executed in the context of the formula and
# lib points to the `HOMEBREW_PREFIX/Cellar/<formula>/<version>/lib`.