diff mercurial/profiling.py @ 36430:7b86aa31b004

py3: fix handling of keyword arguments at more places The keys of keyword arguments of Python 3 should be str, which is why we need to prevent getting the b'' prefix added by the transformer or convert keys to str using pycompat.strkwargs() Differential Revision: https://phab.mercurial-scm.org/D2420
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 24 Feb 2018 16:18:40 +0530
parents 83dfbda40e67
children e39953fdd924
line wrap: on
line diff
--- a/mercurial/profiling.py	Sat Feb 24 16:16:14 2018 +0530
+++ b/mercurial/profiling.py	Sat Feb 24 16:18:40 2018 +0530
@@ -143,7 +143,7 @@
         elif profformat == 'hotpath':
             # inconsistent config: profiling.showmin
             limit = ui.configwith(fraction, 'profiling', 'showmin', 0.05)
-            kwargs['limit'] = limit
+            kwargs[r'limit'] = limit
 
         statprof.display(fp, data=data, format=displayformat, **kwargs)