Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update python to 2.7.3

This is a security and bugfix release. It includes the patch for gdbm.
The announcement is here:
http://mail.python.org/pipermail/python-list/2012-April/1290792.html
  • Loading branch information...
commit 940d357bee186275564bf3749084b079b683f85f 1 parent e3c0a50
@paxswill authored
Showing with 2 additions and 20 deletions.
  1. +2 −20 Library/Formula/python.rb
View
22 Library/Formula/python.rb
@@ -15,8 +15,8 @@ class Distribute < Formula
class Python < Formula
homepage 'http://www.python.org/'
- url 'http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2'
- md5 'ba7b2f11ffdbf195ee0d111b9455a5bd'
+ url 'http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2'
+ md5 'c57477edd6d18bd9eeca2f21add73919'
depends_on 'readline' => :optional # Prefer over OS X's libedit
depends_on 'sqlite' => :optional # Prefer over OS X's older version
@@ -30,12 +30,6 @@ def options
]
end
- def patches
- # Fix for recognizing gdbm 1.9.x databases; already upstream:
- # http://hg.python.org/cpython/rev/14cafb8d1480
- DATA
- end
-
# Skip binaries so modules will load; skip lib because it is mostly Python files
skip_clean ['bin', 'lib']
@@ -182,15 +176,3 @@ def test
system "#{bin}/python -c 'from decimal import Decimal; print Decimal(4) / Decimal(2)'"
end
end
-
-__END__
-diff --git a/Lib/whichdb.py b/Lib/whichdb.py
---- a/Lib/whichdb.py
-+++ b/Lib/whichdb.py
-@@ -91,7 +91,7 @@ def whichdb(filename):
- return ""
-
- # Check for GNU dbm
-- if magic == 0x13579ace:
-+ if magic in (0x13579ace, 0x13579acd, 0x13579acf):
- return "gdbm"
Please sign in to comment.
Something went wrong with that request. Please try again.