[Zodb-checkins] CVS: ZODB3/ZODB - utils.py:1.16
Barry Warsaw
barry@wooz.org
Tue, 14 Jan 2003 13:00:35 -0500
Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv9499
Modified Files:
utils.py
Log Message:
fsrecover.py for one also uses t32, so define it outside the version
test.
=== ZODB3/ZODB/utils.py 1.15 => 1.16 ===
--- ZODB3/ZODB/utils.py:1.15 Tue Dec 10 16:27:12 2002
+++ ZODB3/ZODB/utils.py Tue Jan 14 13:00:32 2003
@@ -18,8 +18,9 @@
from struct import pack, unpack
z64 = '\0'*8
+t32 = 1L << 32
-if sys.version_info >= (2, 2):
+if sys.hexversion >= 0x02020000:
# Note that the distinction between ints and longs is blurred in
# Python 2.2. So make u64() and U64() the same.
@@ -35,8 +36,6 @@
U64 = u64
else:
-
- t32 = 1L << 32
def p64(v):
"""Pack an integer or long into a 8-byte string"""