##// END OF EJS Templates
error: implement __str__ on RevlogError to fix some output defects on Py3...
Augie Fackler -
r40985:f732889a default
parent child Browse files
Show More
@@ -44,6 +44,14 b' class StorageError(Hint, Exception):'
44 class RevlogError(StorageError):
44 class RevlogError(StorageError):
45 __bytes__ = _tobytes
45 __bytes__ = _tobytes
46
46
47 def __str__(self):
48 # avoid cycle, and directly implement unimethod for this
49 # __str__ to allow delaying the import of encoding until
50 # someone actually wants the __str__ of a RevlogError (which
51 # should be very rare).
52 from . import encoding
53 return encoding.unifromlocal(_tobytes(self))
54
47 class FilteredIndexError(IndexError):
55 class FilteredIndexError(IndexError):
48 __bytes__ = _tobytes
56 __bytes__ = _tobytes
49
57
General Comments 0
You need to be logged in to leave comments. Login now