From a5ac7e4cdd1072b7031ca0c9016fd8ad353cd9ce Mon Sep 17 00:00:00 2001 From: Augie Fackler Date: Fri, 11 Aug 2017 15:09:54 -0400 Subject: [PATCH] extensions: don't give AttributeError bytes message on Python 3 Differential Revision: https://phab.mercurial-scm.org/D353 --- mercurial/extensions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mercurial/extensions.py b/mercurial/extensions.py index 6c5ffbb7c2..5c884e4c12 100644 --- 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