Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
bc1edc90
Commit
bc1edc90
authored
Jan 14, 2003
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fsrecover.py for one also uses t32, so define it outside the version
test.
parent
d89fb0bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/ZODB/utils.py
src/ZODB/utils.py
+2
-3
No files found.
src/ZODB/utils.py
View file @
bc1edc90
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment