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

login
register
mail settings
Submitter phabricator
Date Aug. 15, 2017, 8:18 p.m.
Message ID <7599157d6b8fc872ef37b9c1d7f476e0@localhost.localdomain>
Download mbox | patch
Permalink /patch/23041/
State Not Applicable
Headers show

Comments

phabricator - Aug. 15, 2017, 8:18 p.m.
durin42 updated this revision to Diff 946.

REPOSITORY
  rHG Mercurial

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

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