[Zodb-checkins] CVS: ZODB3/Tools - zeopack.py:1.7

Jeremy Hylton jeremy@zope.com
Mon, 18 Nov 2002 17:54:08 -0500


Update of /cvs-repository/ZODB3/Tools
In directory cvs.zope.org:/tmp/cvs-serv19227/Tools

Modified Files:
	zeopack.py 
Log Message:
Merge fixes from ZODB3 3.1 branch.



=== ZODB3/Tools/zeopack.py 1.6 => 1.7 ===
--- ZODB3/Tools/zeopack.py:1.6	Wed Sep 25 18:36:48 2002
+++ ZODB3/Tools/zeopack.py	Mon Nov 18 17:54:08 2002
@@ -47,7 +47,8 @@
     raise RuntimeError, "Unable to connect to ZEO server"
 
 def pack1(addr, storage, days, wait):
-    cs = ClientStorage(addr, storage=storage, wait_for_server_on_startup=wait)
+    cs = ClientStorage(addr, storage=storage,
+                       wait_for_server_on_startup=wait)
     if wait:
         # _startup() is an artifact of the way ZEO 1.0 works.  The
         # ClientStorage doesn't get fully initialized until registerDB()
@@ -60,7 +61,7 @@
     cs.pack(wait=1, days=days)
     cs.close()
 
-def pack2(addr, storage, days, wait):
+def pack2(addr, storage, days):
     cs = ClientStorage(addr, storage=storage, wait=1)
     cs.pack(wait=1, days=days)
     cs.close()
@@ -111,7 +112,7 @@
     if zeoversion == 1:
         pack1(addr, storage, days, wait)
     else:
-        pack(addr, storage, days)
+        pack2(addr, storage, days)
 
 if __name__ == "__main__":
     try: