python: tighten '2to3' check

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Jack Nagel 2012-08-14 15:21:50 -05:00
parent b8c32f1820
commit e9e5f681be
1 changed files with 1 additions and 1 deletions

View File

@ -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