aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/diagnostic.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-04-27 20:17:06 +0200
committerMarkus Reiter2017-05-08 13:37:28 +0200
commit5828eefd01cd61d2a7fbf439620b21f6f5b3d1b1 (patch)
treefeff6d0886a8b2523da9d737a79f620e13b0f118 /Library/Homebrew/diagnostic.rb
parentf1d4c4be78905be0d5fd83922ff1262ed92ba4e8 (diff)
downloadbrew-5828eefd01cd61d2a7fbf439620b21f6f5b3d1b1.tar.bz2
Remove `to_s` from some `Pathname`s.
Diffstat (limited to 'Library/Homebrew/diagnostic.rb')
-rw-r--r--Library/Homebrew/diagnostic.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb
index 1544e6765..9ebc250fe 100644
--- a/Library/Homebrew/diagnostic.rb
+++ b/Library/Homebrew/diagnostic.rb
@@ -119,7 +119,7 @@ module Homebrew
return unless which("python")
anaconda_directory = which("anaconda").realpath.dirname
- python_binary = Utils.popen_read which("python"), "-c", "import sys; sys.stdout.write(sys.executable)"
+ python_binary = Utils.popen_read(which("python"), "-c", "import sys; sys.stdout.write(sys.executable)")
python_directory = Pathname.new(python_binary).realpath.dirname
# Only warn if Python lives with Anaconda, since is most problematic case.