[Zodb-checkins] CVS: StandaloneZODB/ZODB/tests - PackableStorage.py:1.9

Barry Warsaw barry@wooz.org
Thu, 4 Oct 2001 17:06:22 -0400


Update of /cvs-repository/StandaloneZODB/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv26676

Modified Files:
	PackableStorage.py 
Log Message:
_initroot(): Since we have the ZERO global, we might as well use it.


=== StandaloneZODB/ZODB/tests/PackableStorage.py 1.8 => 1.9 ===
     def _initroot(self):
         try:
-            self._storage.load('\0\0\0\0\0\0\0\0','')
+            self._storage.load(ZERO, '')
         except KeyError:
             import PersistentMapping
             from ZODB.Transaction import Transaction
@@ -116,8 +116,7 @@
             t=Transaction()
             t.description='initial database creation'
             self._storage.tpc_begin(t)
-            self._storage.store('\0\0\0\0\0\0\0\0',
-                                None, file.getvalue(), '', t)
+            self._storage.store(ZERO, None, file.getvalue(), '', t)
             self._storage.tpc_vote(t)
             self._storage.tpc_finish(t)