[or-cvs] r17365: {updater} PackageDB was supposed to use shelve, not anydbm. What was I (updater/trunk/lib/thandy/packagesys)

nickm at seul.org nickm at seul.org
Sat Nov 22 18:23:02 UTC 2008


Author: nickm
Date: 2008-11-22 13:23:02 -0500 (Sat, 22 Nov 2008)
New Revision: 17365

Modified:
   updater/trunk/lib/thandy/packagesys/PackageDB.py
Log:
PackageDB was supposed to use shelve, not anydbm.  What was I thinking?

Modified: updater/trunk/lib/thandy/packagesys/PackageDB.py
===================================================================
--- updater/trunk/lib/thandy/packagesys/PackageDB.py	2008-11-22 17:39:57 UTC (rev 17364)
+++ updater/trunk/lib/thandy/packagesys/PackageDB.py	2008-11-22 18:23:02 UTC (rev 17365)
@@ -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 @@
 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):



More information about the tor-commits mailing list