# HG changeset patch # User Yuya Nishihara # Date 2019-11-05 12:35:19 # Node ID ca3dca416f8d5863ca6f5a4a6a6bb835dcd5feeb # Parent 822202e72f69ecd5fedb5e4658ae68f728286e96 py3: add inline comment about encoding issue of str(Abort()) diff --git a/mercurial/error.py b/mercurial/error.py --- a/mercurial/error.py +++ b/mercurial/error.py @@ -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__())