aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/python.rb')
-rw-r--r--Library/Formula/python.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
index 804a6f6fd..ef677ff30 100644
--- a/Library/Formula/python.rb
+++ b/Library/Formula/python.rb
@@ -116,7 +116,7 @@ class Python < Formula
# Python 3 has a 2to3, too. Additionally there still is a 2to3-2.7.
# (https://github.com/mxcl/homebrew/issues/12581)
- rm bin/"2to3" if (HOMEBREW_PREFIX/"bin/2to3").exist?
+ rm bin/"2to3" if (HOMEBREW_PREFIX/"bin/2to3").exist? and (bin/"2to3").exist?
# Tell distutils-based installers where to put scripts
scripts_folder.mkpath