# HG changeset patch # User Augie Fackler # Date 1502478594 14400 # Node ID 0646608368a91b1ebb360921857f86cb6cf34b5b # Parent 38a3767975a78436fddc11a64b6e6efb09dc0a0e extensions: don't give AttributeError bytes message on Python 3 Differential Revision: https://phab.mercurial-scm.org/D353 diff -r 38a3767975a7 -r 0646608368a9 mercurial/extensions.py --- a/mercurial/extensions.py Tue Jul 25 22:49:43 2017 -0400 +++ b/mercurial/extensions.py Fri Aug 11 15:09:54 2017 -0400 @@ -396,8 +396,8 @@ break if currcls is object: - raise AttributeError( - _("type '%s' has no property '%s'") % (cls, propname)) + raise AttributeError(r"type '%s' has no property '%s'" % ( + cls, propname)) def wrapfunction(container, funcname, wrapper): '''Wrap the function named funcname in container