diff mercurial/ui.py @ 40795:691c68bc1222

ui: pass in bytes opts dict to logger.log() This is the convention of the Mercurial API.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 11 Nov 2018 19:36:21 +0900
parents ffd574c144d2
children ab92e2111408
line wrap: on
line diff
--- a/mercurial/ui.py	Sun Nov 11 19:35:33 2018 +0900
+++ b/mercurial/ui.py	Sun Nov 11 19:36:21 2018 +0900
@@ -1742,6 +1742,7 @@
         if not activeloggers:
             return
         msg = msgfmt % msgargs
+        opts = pycompat.byteskwargs(opts)
         # guard against recursion from e.g. ui.debug()
         registeredloggers = self._loggers
         self._loggers = {}