# HG changeset patch # User Augie Fackler # Date 2017-08-11 19:09:54 # Node ID 0646608368a91b1ebb360921857f86cb6cf34b5b # Parent 38a3767975a78436fddc11a64b6e6efb09dc0a0e extensions: don't give AttributeError bytes message on Python 3 Differential Revision: https://phab.mercurial-scm.org/D353 diff --git a/mercurial/extensions.py b/mercurial/extensions.py --- a/mercurial/extensions.py +++ b/mercurial/extensions.py @@ -396,8 +396,8 @@ def wrapfilecache(cls, propname, wrapper 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