[dev-lang/python] add gdbm-1.9 patch, fixes bug 3159

This commit is contained in:
Fabio Erculiani
2012-04-10 13:07:18 +02:00
parent 3d147cb86a
commit 4bb3dae245
13 changed files with 755 additions and 0 deletions
@@ -0,0 +1,11 @@
--- 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 == (0x13579ace, 0x13579acd, 0x13579acf):
return "gdbm"
# Check for old Berkeley db hash file format v2