aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/language/python.rb
diff options
context:
space:
mode:
authorJack Nagel2015-01-01 01:21:59 -0500
committerJack Nagel2015-01-01 13:21:29 -0500
commit26a2e4c4d38f111ab89093c12e3532529fc8da0b (patch)
treec9cc5607448a78d2239812706e71d5bb83fda72d /Library/Homebrew/language/python.rb
parent34fc227f92279a5991014c2d825a013c7e90aabe (diff)
downloadbrew-26a2e4c4d38f111ab89093c12e3532529fc8da0b.tar.bz2
Avoid formula lookup when we know it will fail
Formulary.loader_for cannot raise exceptions, as canonical_name must work for nonexistent formulae. However, we can skip the constant lookup and a redundant file existence check by returning a loader that raises immediately in #get_formula.
Diffstat (limited to 'Library/Homebrew/language/python.rb')
0 files changed, 0 insertions, 0 deletions