# HG changeset patch # User Augie Fackler # Date 2017-03-19 05:02:42 # Node ID 0ca00905f76914d02c11eeb181ce322c4052985b # Parent 9916b3d579a979b3838653fadb8d28a8375ed6c6 error: use r-string to properly pop hints from **kw Fixes the hint mixin on Python 3. diff --git a/mercurial/error.py b/mercurial/error.py --- a/mercurial/error.py +++ b/mercurial/error.py @@ -22,7 +22,7 @@ class Hint(object): 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):