mirror of https://github.com/python/cpython.git
Support byte-swapped dbhash (bsddb) files. Found by Ben Sayer.
This commit is contained in:
parent
2aefe8d7c0
commit
b86ba124ea
|
@ -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…
Reference in New Issue