Commit 1d343a32 authored by Yuya Nishihara's avatar Yuya Nishihara

py3: add inline comment about encoding issue of str(Abort())

--HG--
branch : stable
parent 822202e72f69
......@@ -114,6 +114,9 @@ class Abort(Hint, Exception):
if pycompat.ispy3:
def __str__(self):
# the output would be unreadable if the message was translated,
# but do not replace it with encoding.strfromlocal(), which
# may raise another exception.
return pycompat.sysstr(self.__bytes__())
......
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