Commit c1e8b061 authored by Guido van Rossum's avatar Guido van Rossum

Typo: CorruptedData -> CorruptedDataError. Found by pychecker.

parent 04b56515
...@@ -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.103 $'[11:-2] __version__='$Revision: 1.104 $'[11:-2]
import base64 import base64
from cPickle import Pickler, Unpickler, loads from cPickle import Pickler, Unpickler, loads
...@@ -569,7 +569,7 @@ class FileStorage(BaseStorage.BaseStorage, ...@@ -569,7 +569,7 @@ class FileStorage(BaseStorage.BaseStorage,
h = self._file.read(34) h = self._file.read(34)
_oid = h[:8] _oid = h[:8]
if _oid != oid: if _oid != oid:
raise CorruptedData, h raise CorruptedDataError, h
vlen = unpack(">H", h[-2:])[0] vlen = unpack(">H", h[-2:])[0]
if vlen: if vlen:
# If there is a version, find out its name and let # If there is a version, find out its name and let
......
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