diff hgext/remotefilelog/shallowutil.py @ 40610:13d4ad8d7801

py3: fix keyword arguments handling in hgext/remotefilelog/ Keys of kwargs on Python 3 should be strings. This patch fixes them by appending r'' prefixes, and using pycompat.byteskwargs() and pycompat.strkwargs(). Differential Revision: https://phab.mercurial-scm.org/D5259
author Pulkit Goyal <pulkit@yandex-team.ru>
date Tue, 13 Nov 2018 17:41:26 +0300
parents 1419f780207c
children 3fa4183e7803
line wrap: on
line diff
--- a/hgext/remotefilelog/shallowutil.py	Sat Oct 13 05:09:18 2018 +0300
+++ b/hgext/remotefilelog/shallowutil.py	Tue Nov 13 17:41:26 2018 +0300
@@ -105,7 +105,7 @@
 def reportpackmetrics(ui, prefix, *stores):
     dicts = [s.getmetrics() for s in stores]
     dict = prefixkeys(sumdicts(*dicts), prefix + '_')
-    ui.log(prefix + "_packsizes", "", **dict)
+    ui.log(prefix + "_packsizes", "", **pycompat.strkwargs(dict))
 
 def _parsepackmeta(metabuf):
     """parse datapack meta, bytes (<metadata-list>) -> dict