From: Jesus Cea Date: Mon, 19 Sep 2011 15:08:18 +0000 (+0200) Subject: Close #13007: whichdb should recognize gdbm 1.9 magic numbers X-Git-Tag: v3.3.0a1~1522^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc566b00adb18c77331f5786525c4584984fda51;p=python Close #13007: whichdb should recognize gdbm 1.9 magic numbers --- diff --git a/Lib/dbm/__init__.py b/Lib/dbm/__init__.py index 76a43c43f3..813a29d709 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 diff --git a/Misc/NEWS b/Misc/NEWS index 5289c3799d..bfe536925a 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -55,6 +55,8 @@ Library - Issue #11657: Fix sending file descriptors over 255 over a multiprocessing Pipe. +- Issue #13007: whichdb should recognize gdbm 1.9 magic numbers. + - Issue #12213: Fix a buffering bug with interleaved reads and writes that could appear on BufferedRandom streams.