# HG changeset patch # User Yuya Nishihara # Date 1572957319 -32400 # Node ID ca3dca416f8d5863ca6f5a4a6a6bb835dcd5feeb # Parent 822202e72f69ecd5fedb5e4658ae68f728286e96 py3: add inline comment about encoding issue of str(Abort()) diff -r 822202e72f69 -r ca3dca416f8d mercurial/error.py --- a/mercurial/error.py Tue Nov 05 21:29:40 2019 +0900 +++ b/mercurial/error.py Tue Nov 05 21:35:19 2019 +0900 @@ -114,6 +114,9 @@ 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__())