Commit c1f44945 authored by Tim Peters's avatar Tim Peters

Repaired some ReST markup.

parent 583aa3fa
...@@ -43,17 +43,17 @@ BTrees ...@@ -43,17 +43,17 @@ BTrees
FileStorage FileStorage
----------- -----------
- Add a record iteration protocol to FileStorage. You can use the - Addded a record iteration protocol to FileStorage. You can use the
record iterator to iterate over all current revisions of data record iterator to iterate over all current revisions of data
pickles in the storage. pickles in the storage.
In order to support calling via ZEO, we don't implement this as an In order to support calling via ZEO, we don't implement this as an
1actual iterator. An example of using the record iterator protocol actual iterator. An example of using the record iterator protocol
is as follows: is as follows::
storage = FileStorage('anexisting.fs') storage = FileStorage('anexisting.fs')
next_oid = None next_oid = None
while 1: while True:
oid, tid, data, next_oid = storage.record_iternext(next_oid) oid, tid, data, next_oid = storage.record_iternext(next_oid)
# do something with oid, tid and data # do something with oid, tid and data
if next_oid is None: if next_oid is None:
......
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