aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python3.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/python3.rb')
-rw-r--r--Library/Formula/python3.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index 83e0fef82..067bed293 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -193,7 +193,7 @@ class Python3 < Formula
end
def xy
- version.to_s.slice /(3.\d)/
+ version.to_s.slice(/(3.\d)/) || "3.5"
end
def distutils_fix_superenv(args)