changeset 7470:1d58c0491d5e

use repr() instead of backticks
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 06 Dec 2008 14:27:31 +0100
parents e63843793f01
children 94ecd4922a23
files mercurial/changelog.py mercurial/ui.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):