extensions: don't give AttributeError bytes message on Python 3

Differential Revision: https://phab.mercurial-scm.org/D353
This commit is contained in:
Augie Fackler 2017-08-11 15:09:54 -04:00
parent 749c36880e
commit a5ac7e4cdd

View File

@ -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