Skip to content

Commit

Permalink
Support byte-swapped dbhash (bsddb) files. Found by Ben Sayer.
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Apr 28, 1998
1 parent 2aefe8d commit b86ba12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/whichdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def whichdb(filename):
return "gdbm"

# Check for BSD hash
if magic == 0x061561:
if magic in (0x00061561, 0x61150600):
return "dbhash"

# Unknown
Expand Down

0 comments on commit b86ba12

Please sign in to comment.