diff --git a/Lib/whichdb.py b/Lib/whichdb.py index 3186edf1a78..c072e5bdbe8 100644 --- a/Lib/whichdb.py +++ b/Lib/whichdb.py @@ -50,7 +50,7 @@ def whichdb(filename): return "gdbm" # Check for BSD hash - if magic == 0x061561: + if magic in (0x00061561, 0x61150600): return "dbhash" # Unknown