Commit bc566b00 authored by Jesus Cea's avatar Jesus Cea

Close #13007: whichdb should recognize gdbm 1.9 magic numbers

parent 1d678f84
...@@ -166,7 +166,7 @@ def whichdb(filename): ...@@ -166,7 +166,7 @@ def whichdb(filename):
return "" return ""
# Check for GNU dbm # Check for GNU dbm
if magic == 0x13579ace: if magic in (0x13579ace, 0x13579acd, 0x13579acf):
return "dbm.gnu" return "dbm.gnu"
# Later versions of Berkeley db hash file have a 12-byte pad in # Later versions of Berkeley db hash file have a 12-byte pad in
......
...@@ -55,6 +55,8 @@ Library ...@@ -55,6 +55,8 @@ Library
- Issue #11657: Fix sending file descriptors over 255 over a multiprocessing - Issue #11657: Fix sending file descriptors over 255 over a multiprocessing
Pipe. Pipe.
- Issue #13007: whichdb should recognize gdbm 1.9 magic numbers.
- Issue #12213: Fix a buffering bug with interleaved reads and writes that - Issue #12213: Fix a buffering bug with interleaved reads and writes that
could appear on BufferedRandom streams. could appear on BufferedRandom streams.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment