diff mercurial/error.py @ 31503:0ca00905f769

error: use r-string to properly pop hints from **kw Fixes the hint mixin on Python 3.
author Augie Fackler <augie@google.com>
date Sun, 19 Mar 2017 01:02:42 -0400
parents 0f865311ae3f
children b445a3f00528
line wrap: on
line diff
--- a/mercurial/error.py	Sun Mar 19 14:17:07 2017 -0400
+++ b/mercurial/error.py	Sun Mar 19 01:02:42 2017 -0400
@@ -22,7 +22,7 @@
     pass remaining arguments to the exception class.
     """
     def __init__(self, *args, **kw):
-        self.hint = kw.pop('hint', None)
+        self.hint = kw.pop(r'hint', None)
         super(Hint, self).__init__(*args, **kw)
 
 class RevlogError(Hint, Exception):