diff hgext/eol.py @ 45776:0fc8b066928a

errors: name arguments to ParseError constructor As with similar previous patches, this is to improve readability. Differential Revision: https://phab.mercurial-scm.org/D9240
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 22 Oct 2020 09:58:05 -0700
parents 9d2b2df2c2ba
children 9dc1351d0b5f
line wrap: on
line diff
--- a/hgext/eol.py	Tue Oct 20 08:58:20 2020 -0700
+++ b/hgext/eol.py	Thu Oct 22 09:58:05 2020 -0700
@@ -280,7 +280,7 @@
                 b"warning: ignoring .hgeol file due to parse error "
                 b"at %s: %s\n"
             )
-            % (inst.args[1], inst.args[0])
+            % (inst.location, inst.message)
         )
     return None