equal
deleted
inserted
replaced
112 __bytes__ = _tobytes |
112 __bytes__ = _tobytes |
113 |
113 |
114 if pycompat.ispy3: |
114 if pycompat.ispy3: |
115 |
115 |
116 def __str__(self): |
116 def __str__(self): |
|
117 # the output would be unreadable if the message was translated, |
|
118 # but do not replace it with encoding.strfromlocal(), which |
|
119 # may raise another exception. |
117 return pycompat.sysstr(self.__bytes__()) |
120 return pycompat.sysstr(self.__bytes__()) |
118 |
121 |
119 |
122 |
120 class HookLoadError(Abort): |
123 class HookLoadError(Abort): |
121 """raised when loading a hook fails, aborting an operation |
124 """raised when loading a hook fails, aborting an operation |