mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Close #13007: whichdb should recognize gdbm 1.9 magic numbers
This commit is contained in:
parent
1d678f8413
commit
bc566b00ad
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue