Skip to content

Commit

Permalink
Close python#13007: whichdb should recognize gdbm 1.9 magic numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jcea committed Sep 19, 2011
1 parent 1d678f8 commit bc566b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/dbm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions Misc/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit bc566b0

Please sign in to comment.