diff mercurial/cmdutil.py @ 33112:05906b8e1d23

py3: use pycompat.byteskwargs() to convert kwargs' keys to bytes This is used where ever required like where kwargs are passed into ui.formatter(), scmutil.match() or cmdutil.openrevlog() which expects bytes.
author Pulkit Goyal <7895pulkit@gmail.com>
date Tue, 27 Jun 2017 00:20:55 +0530
parents 99c6c9fa9e6d
children 1b6946f87c50
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Tue Jun 27 02:24:38 2017 +0900
+++ b/mercurial/cmdutil.py	Tue Jun 27 00:20:55 2017 +0530
@@ -1332,6 +1332,7 @@
             self.ui.write(self.footer)
 
     def show(self, ctx, copies=None, matchfn=None, **props):
+        props = pycompat.byteskwargs(props)
         if self.buffered:
             self.ui.pushbuffer(labeled=True)
             self._show(ctx, copies, matchfn, props)