Show More
@@ -68,14 +68,12 b' class Error(Hint, Exception):' | |||
|
68 | 68 | def __bytes__(self): |
|
69 | 69 | return self.message |
|
70 | 70 | |
|
71 | if pycompat.ispy3: | |
|
72 | ||
|
73 | def __str__(self): | |
|
74 | # type: () -> str | |
|
75 | # the output would be unreadable if the message was translated, | |
|
76 | # but do not replace it with encoding.strfromlocal(), which | |
|
77 | # may raise another exception. | |
|
78 | return pycompat.sysstr(self.__bytes__()) | |
|
71 | def __str__(self): | |
|
72 | # type: () -> str | |
|
73 | # the output would be unreadable if the message was translated, | |
|
74 | # but do not replace it with encoding.strfromlocal(), which | |
|
75 | # may raise another exception. | |
|
76 | return pycompat.sysstr(self.__bytes__()) | |
|
79 | 77 | |
|
80 | 78 | def format(self): |
|
81 | 79 | # type: () -> bytes |
General Comments 0
You need to be logged in to leave comments.
Login now