diff hgext/remotefilelog/shallowbundle.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 6f0b6905ef6f
children 4e08bbfc6d51
line wrap: on
line diff
--- a/hgext/remotefilelog/shallowbundle.py	Sat Oct 13 05:09:18 2018 +0300
+++ b/hgext/remotefilelog/shallowbundle.py	Tue Nov 13 17:41:26 2018 +0300
@@ -146,7 +146,7 @@
     try:
         # if serving, only send files the clients has patterns for
         if source == 'serve':
-            bundlecaps = kwargs.get('bundlecaps')
+            bundlecaps = kwargs.get(r'bundlecaps')
             includepattern = None
             excludepattern = None
             for cap in (bundlecaps or []):