aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 68557474d..7a7673d01 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -377,7 +377,8 @@ ensure
end
def capture_stderr
- old, $stderr = $stderr, StringIO.new
+ old = $stderr
+ $stderr = StringIO.new
yield
$stderr.string
ensure