summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2011-09-19 15:11:26 (GMT)
committerJesus Cea <jcea@jcea.es>2011-09-19 15:11:26 (GMT)
commita372de8408b28689c63cb5ec711e2dceffc05e92 (patch)
treec25a78f5fc8bb263dbae10b1a0d717f584e4feb7 /Lib
parent1cbd2ab4044dbef8e1c7cb0b694f30049f42e7f6 (diff)
parentbc566b00adb18c77331f5786525c4584984fda51 (diff)
downloadcpython-a372de8408b28689c63cb5ec711e2dceffc05e92.zip
cpython-a372de8408b28689c63cb5ec711e2dceffc05e92.tar.gz
cpython-a372de8408b28689c63cb5ec711e2dceffc05e92.tar.bz2
Close #13007: whichdb should recognize gdbm 1.9 magic numbers
Diffstat (limited to 'Lib')
-rw-r--r--Lib/dbm/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dbm/__init__.py b/Lib/dbm/__init__.py
index 76a43c4..813a29d 100644
--- a/Lib/dbm/__init__.py
+++ b/Lib/dbm/__init__.py
@@ -166,7 +166,7 @@ def whichdb(filename):
return ""
# Check for GNU dbm
- if magic == 0x13579ace:
+ if magic in (0x13579ace, 0x13579acd, 0x13579acf):
return "dbm.gnu"
# Later versions of Berkeley db hash file have a 12-byte pad in