Commit 30746649 authored by Jeremy Hylton's avatar Jeremy Hylton

Simplify defn of UndoError.

Use types module rather than type().
Fix indentation nit.
parent 2b3f3ba5
...@@ -184,13 +184,12 @@ ...@@ -184,13 +184,12 @@
# 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.56 $'[11:-2] __version__='$Revision: 1.57 $'[11:-2]
import struct, time, os, bpthread, string, base64, sys import struct, time, os, bpthread, string, base64, sys
from struct import pack, unpack from struct import pack, unpack
from cPickle import loads from cPickle import loads
import POSException from POSException import UndoError
UndoError = POSException.UndoError
from TimeStamp import TimeStamp from TimeStamp import TimeStamp
from lock_file import lock_file from lock_file import lock_file
from utils import t32, p64, U64, cp from utils import t32, p64, U64, cp
...@@ -203,7 +202,7 @@ import ConflictResolution ...@@ -203,7 +202,7 @@ import ConflictResolution
try: from posix import fsync try: from posix import fsync
except: fsync=None except: fsync=None
StringType=type('') from types import StringType
z64='\0'*8 z64='\0'*8
...@@ -238,7 +237,7 @@ class CorruptedTransactionError(CorruptedFileStorageError): pass ...@@ -238,7 +237,7 @@ class CorruptedTransactionError(CorruptedFileStorageError): pass
class CorruptedDataError(CorruptedFileStorageError): pass class CorruptedDataError(CorruptedFileStorageError): pass
class FileStorageQuotaError(FileStorageError, class FileStorageQuotaError(FileStorageError,
POSException.StorageSystemError): POSException.StorageSystemError):
"""File storage quota exceeded """File storage quota exceeded
""" """
......
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