changeset 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 9916b3d579a9
children 73aa13bc8dac
files mercurial/error.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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):