diff hgext/remotefilelog/metadatastore.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 3a333a582d7b
children 2372284d9457
line wrap: on
line diff
--- a/hgext/remotefilelog/metadatastore.py	Sat Oct 13 05:09:18 2018 +0300
+++ b/hgext/remotefilelog/metadatastore.py	Tue Nov 13 17:41:26 2018 +0300
@@ -11,12 +11,12 @@
         super(unionmetadatastore, self).__init__(*args, **kwargs)
 
         self.stores = args
-        self.writestore = kwargs.get('writestore')
+        self.writestore = kwargs.get(r'writestore')
 
         # If allowincomplete==True then the union store can return partial
         # ancestor lists, otherwise it will throw a KeyError if a full
         # history can't be found.
-        self.allowincomplete = kwargs.get('allowincomplete', False)
+        self.allowincomplete = kwargs.get(r'allowincomplete', False)
 
     def getancestors(self, name, node, known=None):
         """Returns as many ancestors as we're aware of.