changeset 4757:c01c9b9d3713

py3: avoid "%s" for formatting None
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 12 Jul 2019 08:17:25 -0700
parents 22ffbbba695d
children f0ecf2137824
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py	Fri Jul 12 08:16:30 2019 -0700
+++ b/hgext3rd/topic/__init__.py	Fri Jul 12 08:17:25 2019 -0700
@@ -964,7 +964,7 @@
             # to not be so invasive.
             del fixedextra['amend_source']
         ui.debug('changing topic of %s from %s to %s\n' % (
-            c, oldtopic, newtopic))
+            c, oldtopic or '<none>', newtopic or '<none>'))
         ui.debug('fixedextra: %r\n' % fixedextra)
         # While changing topic of set of linear commits, make sure that
         # we base our commits on new parent rather than old parent which