Commit a1627c94 authored by Jeremy Hylton's avatar Jeremy Hylton

Simplify defn of UndoError.

Use types module rather than type().
Fix indentation nit.
parent 5a1fdd8a
...@@ -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
......
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