mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
extensions: don't give AttributeError bytes message on Python 3
Differential Revision: https://phab.mercurial-scm.org/D353
This commit is contained in:
parent
749c36880e
commit
a5ac7e4cdd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user