summaryrefslogtreecommitdiff
path: root/lib/thandy/packagesys
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-11-22 18:23:02 +0000
committerNick Mathewson <nickm@torproject.org>2008-11-22 18:23:02 +0000
commitd077d211bbfabeecf0b175df6bfb8e4e96a30747 (patch)
tree6c2c580411866e90cf1357fe8ef654308e19d3b0 /lib/thandy/packagesys
parent6c78fd8ff6b3d39fbae85103bda0651ca2f764d9 (diff)
PackageDB was supposed to use shelve, not anydbm. What was I thinking?
git-svn-id: file:///home/or/svnrepo/updater/trunk@17365 55e972cd-5a19-0410-ae62-a4d7a52db4cd
Diffstat (limited to 'lib/thandy/packagesys')
-rw-r--r--lib/thandy/packagesys/PackageDB.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/thandy/packagesys/PackageDB.py b/lib/thandy/packagesys/PackageDB.py
index b957b5e..a81507d 100644
--- a/lib/thandy/packagesys/PackageDB.py
+++ b/lib/thandy/packagesys/PackageDB.py
@@ -1,6 +1,5 @@
# Copyright 2008 The Tor Project, Inc. See LICENSE for licensing information.
-import anydbm
import atexit
import shelve
@@ -12,7 +11,7 @@ import thandy.packagesys.PackageSystem
class SimplePackageDB:
def __init__(self, filename):
thandy.util.ensureParentDir(filename)
- self._db = anydbm.open(filename, 'c')
+ self._db = shelve.open(filename, 'c')
atexit.register(self.close)
def close(self):