mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Support byte-swapped dbhash (bsddb) files. Found by Ben Sayer.
This commit is contained in:
parent
2aefe8d7c0
commit
b86ba124ea
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ def whichdb(filename):
|
|||
return "gdbm"
|
||||
|
||||
# Check for BSD hash
|
||||
if magic == 0x061561:
|
||||
if magic in (0x00061561, 0x61150600):
|
||||
return "dbhash"
|
||||
|
||||
# Unknown
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue