error: use r-string to properly pop hints from **kw
authorAugie Fackler <augie@google.com>
Sun, 19 Mar 2017 01:02:42 -0400
changeset 31503 0ca00905f769
parent 31502 9916b3d579a9
child 31504 73aa13bc8dac
error: use r-string to properly pop hints from **kw Fixes the hint mixin on Python 3.
mercurial/error.py
--- 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):