aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2013-09-14 12:21:45 +0100
committerMike McQuaid2013-09-14 12:21:49 +0100
commit07142a2a325ad8a2bb5249a22fa25c3e0e0e45a3 (patch)
tree5446cd02263802bf10326558bdd8e9e708b8a7b4
parent315c7a12127999cc9b757cdf93aa7fa5f8eb772b (diff)
downloadbrew-07142a2a325ad8a2bb5249a22fa25c3e0e0e45a3.tar.bz2
PythonHelper: move old_env outside begin block.
-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`.