Support byte-swapped dbhash (bsddb) files. Found by Ben Sayer.

This commit is contained in:
Guido van Rossum 1998-04-28 15:41:03 +00:00
parent 2aefe8d7c0
commit b86ba124ea
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ def whichdb(filename):
return "gdbm" return "gdbm"
# Check for BSD hash # Check for BSD hash
if magic == 0x061561: if magic in (0x00061561, 0x61150600):
return "dbhash" return "dbhash"
# Unknown # Unknown