Commit ea174fce authored by Barry Warsaw's avatar Barry Warsaw

fsrecover.py for one also uses t32, so define it outside the version

test.
parent 45b629a5
...@@ -18,8 +18,9 @@ import TimeStamp, time ...@@ -18,8 +18,9 @@ import TimeStamp, time
from struct import pack, unpack from struct import pack, unpack
z64 = '\0'*8 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 # Note that the distinction between ints and longs is blurred in
# Python 2.2. So make u64() and U64() the same. # Python 2.2. So make u64() and U64() the same.
...@@ -36,8 +37,6 @@ if sys.version_info >= (2, 2): ...@@ -36,8 +37,6 @@ if sys.version_info >= (2, 2):
else: else:
t32 = 1L << 32
def p64(v): def p64(v):
"""Pack an integer or long into a 8-byte string""" """Pack an integer or long into a 8-byte string"""
if v < t32: if v < t32:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment