Commit 5e2ed5e7 authored by Jérome Perrin's avatar Jérome Perrin

analyze: explicitly use gdbm as dbm

and use six.moves for python3 compatibility.

Previously we were using "anydbm" which selects dbhash, gdbm or dbm, but
opening the db with the f flag that's only valid for gdm, so de-facto we
were supporting only gdbm.
parent 79aa0c45
......@@ -9,7 +9,7 @@ from __future__ import print_function
import sys
import os
import getopt
import anydbm as dbm
from six.moves import dbm_gnu as dbm
import tempfile
import shutil
from ZODB.FileStorage import FileIterator, packed_version
  • @kazuhiko this is a "non-obvious" change that maybe needs confirmation. Original commit adding dbm support was 2e834aaf

  • Oh, I didn't notice that 'f' flag was only valid for gdbm. I have no idea which db is best for zodbanalyze purpose, but I agree with this change.

  • thanks

Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment