# HG changeset patch # User Benoit Boissinot # Date 2008-12-06 13:27:31 # Node ID 1d58c0491d5e093c6fea6f9d2d83dd5332c0f259 # Parent e63843793f01e097391ae623223fd7242dfa207b use repr() instead of backticks diff --git a/mercurial/changelog.py b/mercurial/changelog.py --- a/mercurial/changelog.py +++ b/mercurial/changelog.py @@ -179,7 +179,7 @@ class changelog(revlog): user = user.strip() if "\n" in user: - raise RevlogError(_("username %s contains a newline") % `user`) + raise RevlogError(_("username %s contains a newline") % repr(user)) user, desc = util.fromlocal(user), util.fromlocal(desc) if date: diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -350,7 +350,7 @@ class ui(object): if not user: raise util.Abort(_("Please specify a username.")) if "\n" in user: - raise util.Abort(_("username %s contains a newline\n") % `user`) + raise util.Abort(_("username %s contains a newline\n") % repr(user)) return user def shortuser(self, user):