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

login
register
mail settings
Submitter phabricator
Date Aug. 16, 2017, 3:47 a.m.
Message ID <93349538c8be71fd6cc37dffcd34bdbd@localhost.localdomain>
Download mbox | patch
Permalink /patch/23063/
State Not Applicable
Headers show

Comments

phabricator - Aug. 16, 2017, 3:47 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0646608368a9: extensions: don't give AttributeError bytes message on Python 3 (authored by durin42).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D353?vs=946&id=969

REVISION DETAIL
  https://phab.mercurial-scm.org/D353

AFFECTED FILES
  mercurial/extensions.py

CHANGE DETAILS




To: durin42, #hg-reviewers, yuja
Cc: mercurial-devel

Patch

diff --git a/mercurial/extensions.py b/mercurial/extensions.py
--- a/mercurial/extensions.py
+++ b/mercurial/extensions.py
@@ -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