# HG changeset patch # User Augie Fackler # Date 1489899762 14400 # Node ID 0ca00905f76914d02c11eeb181ce322c4052985b # Parent 9916b3d579a979b3838653fadb8d28a8375ed6c6 error: use r-string to properly pop hints from **kw Fixes the hint mixin on Python 3. diff -r 9916b3d579a9 -r 0ca00905f769 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):