Commit b73f515d authored by Jeremy Hylton's avatar Jeremy Hylton

Add some whitespace and remove some commented out code.

parent 695f2ef4
...@@ -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.96 $'[11:-2] __version__='$Revision: 1.97 $'[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:
......
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