diff mercurial/error.py @ 43418:ca3dca416f8d stable 5.2

py3: add inline comment about encoding issue of str(Abort())
author Yuya Nishihara <yuya@tcha.org>
date Tue, 05 Nov 2019 21:35:19 +0900
parents 822202e72f69
children 9f70512ae2cf
line wrap: on
line diff
--- 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__())