commit | d256ca12c13b20d243a27e143986426018b57877 | [log] [tgz] |
---|---|---|
author | Jesus Cea <jcea@jcea.es> | Mon Sep 19 16:57:18 2011 +0200 |
committer | Jesus Cea <jcea@jcea.es> | Mon Sep 19 16:57:18 2011 +0200 |
tree | 517df865b3a6a1d4ff784a493aa764a611a78a9c | |
parent | 607cc361bb489bb5d860ef162bcf91a7c7795d42 [diff] |
Close #13007: whichdb should recognize gdbm 1.9 magic numbers
diff --git a/Lib/whichdb.py b/Lib/whichdb.py index f077f87..9071430 100644 --- a/Lib/whichdb.py +++ b/Lib/whichdb.py
@@ -91,7 +91,7 @@ return "" # Check for GNU dbm - if magic == 0x13579ace: + if magic in (0x13579ace, 0x13579acd, 0x13579acf): return "gdbm" # Check for old Berkeley db hash file format v2