diff mercurial/changelog.py @ 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 f29b674cc221
children 08cabecfa8a8
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: