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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
b73f515d
Commit
b73f515d
authored
Aug 28, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some whitespace and remove some commented out code.
parent
695f2ef4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
src/ZODB/FileStorage.py
src/ZODB/FileStorage.py
+3
-6
No files found.
src/ZODB/FileStorage.py
View file @
b73f515d
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
# may have a back pointer to a version record or to a non-version
# may have a back pointer to a version record or to a non-version
# record.
# record.
#
#
__version__
=
'$Revision: 1.9
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.9
7
$'
[
11
:
-
2
]
import
base64
import
base64
from
cPickle
import
Pickler
,
Unpickler
,
loads
from
cPickle
import
Pickler
,
Unpickler
,
loads
...
@@ -489,8 +489,8 @@ class FileStorage(BaseStorage.BaseStorage,
...
@@ -489,8 +489,8 @@ class FileStorage(BaseStorage.BaseStorage,
self
.
_file
.
seek
(
srcpos
)
self
.
_file
.
seek
(
srcpos
)
h
=
self
.
_file
.
read
(
DATA_VERSION_HDR_LEN
)
h
=
self
.
_file
.
read
(
DATA_VERSION_HDR_LEN
)
# h -> oid, serial, prev(oid), tloc, vlen, plen, pnv, pv
# h -> oid, serial, prev(oid), tloc, vlen, plen, pnv, pv
oid
=
h
[:
8
]
oid
=
h
[:
8
]
pnv
=
h
[
-
16
:
-
8
]
pnv
=
h
[
-
16
:
-
8
]
if
self
.
_index
.
get
(
oid
)
==
srcpos
:
if
self
.
_index
.
get
(
oid
)
==
srcpos
:
# This is a current record!
# This is a current record!
self
.
_tindex
[
oid
]
=
here
self
.
_tindex
[
oid
]
=
here
...
@@ -2098,9 +2098,6 @@ def read_index(file, name, index, vindex, tindex, stop='\377'*8,
...
@@ -2098,9 +2098,6 @@ def read_index(file, name, index, vindex, tindex, stop='\377'*8,
def
_loadBack
(
file
,
oid
,
back
):
def
_loadBack
(
file
,
oid
,
back
):
## seek=file.seek
## read=file.read
while
1
:
while
1
:
old
=
U64
(
back
)
old
=
U64
(
back
)
if
not
old
:
if
not
old
:
...
...
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