Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Zope
Commits
13ea966d
Commit
13ea966d
authored
Jul 18, 2002
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_finish(), _abort(): Use a better idiom for looping over rec elements.
parent
54e270fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
lib/python/BDBStorage/Autopack.py
lib/python/BDBStorage/Autopack.py
+3
-7
No files found.
lib/python/BDBStorage/Autopack.py
View file @
13ea966d
...
...
@@ -14,7 +14,7 @@
"""An autopacking Berkeley storage without undo and versioning.
"""
__version__
=
'$Revision: 1.
1
$'
.
split
()[
-
2
:][
0
]
__version__
=
'$Revision: 1.
2
$'
.
split
()[
-
2
:][
0
]
import
sys
import
struct
...
...
@@ -122,9 +122,7 @@ class Autopack(BerkeleyBase):
c
=
self
.
_oids
.
cursor
()
try
:
rec
=
c
.
first
()
while
1
:
if
rec
is
None
:
break
while
rec
is
not
None
:
oid
,
data
=
rec
lastrevid
=
self
.
_serials
.
get
(
oid
,
txn
=
txn
)
if
lastrevid
:
...
...
@@ -151,9 +149,7 @@ class Autopack(BerkeleyBase):
c
=
self
.
_oids
.
cursor
()
try
:
rec
=
c
.
first
()
while
1
:
if
rec
is
None
:
break
while
rec
is
not
None
:
oid
,
data
=
rec
self
.
_actions
.
put
(
tid
+
oid
,
DEC
,
txn
=
txn
)
rec
=
c
.
next
()
...
...
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