[PATCH 02 of 11 py3] debuginstall: use %d instead of %s for formatting an int

Augie Fackler raf at durin42.com
Sun Oct 9 10:16:44 EDT 2016


# HG changeset patch
# User Augie Fackler <augie at 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()
 


More information about the Mercurial-devel mailing list