# HG changeset patch
# User Augie Fackler <au...@google.com>
# Date 1476020566 14400
#      Sun Oct 09 09:42:46 2016 -0400
# Node ID 826ebebef37bd58fea9abdd4690ea7b5ad6b7552
# Parent  9b6ff0f940ed2ee33516aac22d5c69914400af7a
debuginstall: use %d instead of %s for formatting an int

% formatting on bytes on Python 3 is pickier about which % character
we specify.

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2798,7 +2798,7 @@ def debuginstall(ui, **opts):
     if not problems:
         fm.data(problems=problems)
     fm.condwrite(problems, 'problems',
-                 _("%s problems detected,"
+                 _("%d problems detected,"
                    " please check your install!\n"), problems)
     fm.end()
 
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to