comparison 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
comparison
equal deleted inserted replaced
31502:9916b3d579a9 31503:0ca00905f769
20 20
21 This should come first in the inheritance list to consume a hint and 21 This should come first in the inheritance list to consume a hint and
22 pass remaining arguments to the exception class. 22 pass remaining arguments to the exception class.
23 """ 23 """
24 def __init__(self, *args, **kw): 24 def __init__(self, *args, **kw):
25 self.hint = kw.pop('hint', None) 25 self.hint = kw.pop(r'hint', None)
26 super(Hint, self).__init__(*args, **kw) 26 super(Hint, self).__init__(*args, **kw)
27 27
28 class RevlogError(Hint, Exception): 28 class RevlogError(Hint, Exception):
29 pass 29 pass
30 30