[Zodb-checkins] CVS: StandaloneZODB/bsddb3Storage/bsddb3Storage - Full.py:1.40.2.5

Barry Warsaw barry@wooz.org
Wed, 19 Jun 2002 11:03:06 -0400


Update of /cvs-repository/StandaloneZODB/bsddb3Storage/bsddb3Storage
In directory cvs.zope.org:/tmp/cvs-serv2164

Modified Files:
      Tag: bsddb3Storage-picklelog-branch
	Full.py 
Log Message:
incr(): Gah!  Use struct.pack() and struct.unpack()


=== StandaloneZODB/bsddb3Storage/bsddb3Storage/Full.py 1.40.2.4 => 1.40.2.5 ===
 # Python 2.1
 def incr(refcount, delta):
-    return pack('>Q', unpack('>Q', refcount)[0] + delta)
+    return struct.pack('>Q', struct.unpack('>Q', refcount)[0] + delta)