use repr() instead of backticks
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sat, 06 Dec 2008 14:27:31 +0100
changeset 7470 1d58c0491d5e
parent 7469 e63843793f01
child 7471 94ecd4922a23
use repr() instead of backticks
mercurial/changelog.py
mercurial/ui.py
--- a/mercurial/changelog.py	Fri Dec 05 22:22:14 2008 +0100
+++ b/mercurial/changelog.py	Sat Dec 06 14:27:31 2008 +0100
@@ -179,7 +179,7 @@
 
         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:
--- a/mercurial/ui.py	Fri Dec 05 22:22:14 2008 +0100
+++ b/mercurial/ui.py	Sat Dec 06 14:27:31 2008 +0100
@@ -350,7 +350,7 @@
         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):