py3: avoid "%s" for formatting None
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 12 Jul 2019 08:17:25 -0700
changeset 4757 c01c9b9d3713
parent 4756 22ffbbba695d
child 4758 f0ecf2137824
py3: avoid "%s" for formatting None
hgext3rd/topic/__init__.py
--- 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