diff options
Diffstat (limited to 'Lib/whichdb.py')
-rw-r--r-- | Lib/whichdb.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/whichdb.py b/Lib/whichdb.py index 3722e41..8985062 100644 --- a/Lib/whichdb.py +++ b/Lib/whichdb.py @@ -41,12 +41,9 @@ def whichdb(filename): # Convert to 4-byte int in native byte order -- return "" if impossible try: - (magic,) = struct.unpack("l", s) + (magic,) = struct.unpack("=l", s) except struct.error: - try: - (magic,) = struct.unpack("i", s) - except struct.error: - return "" + return "" # Check for GNU dbm if magic == 0x13579ace: |