Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
40609:ee9981bc8b44 | 40610:13d4ad8d7801 |
---|---|
103 return result | 103 return result |
104 | 104 |
105 def reportpackmetrics(ui, prefix, *stores): | 105 def reportpackmetrics(ui, prefix, *stores): |
106 dicts = [s.getmetrics() for s in stores] | 106 dicts = [s.getmetrics() for s in stores] |
107 dict = prefixkeys(sumdicts(*dicts), prefix + '_') | 107 dict = prefixkeys(sumdicts(*dicts), prefix + '_') |
108 ui.log(prefix + "_packsizes", "", **dict) | 108 ui.log(prefix + "_packsizes", "", **pycompat.strkwargs(dict)) |
109 | 109 |
110 def _parsepackmeta(metabuf): | 110 def _parsepackmeta(metabuf): |
111 """parse datapack meta, bytes (<metadata-list>) -> dict | 111 """parse datapack meta, bytes (<metadata-list>) -> dict |
112 | 112 |
113 The dict contains raw content - both keys and values are strings. | 113 The dict contains raw content - both keys and values are strings. |