lfs: use byteskwargs() on some **kwargs for python 3 compat
authorAugie Fackler <augie@google.com>
Fri, 02 Mar 2018 11:07:07 -0500
changeset 36602 e30be4d2ac60
parent 36601 4da09b46451e
child 36603 dcb6fbaa43a8
lfs: use byteskwargs() on some **kwargs for python 3 compat Differential Revision: https://phab.mercurial-scm.org/D2566
hgext/lfs/pointer.py
--- a/hgext/lfs/pointer.py	Fri Mar 02 11:06:37 2018 -0500
+++ b/hgext/lfs/pointer.py	Fri Mar 02 11:07:07 2018 -0500
@@ -13,6 +13,7 @@
 
 from mercurial import (
     error,
+    pycompat,
 )
 
 class InvalidPointer(error.RevlogError):
@@ -23,7 +24,8 @@
 
     def __init__(self, *args, **kwargs):
         self['version'] = self.VERSION
-        super(gitlfspointer, self).__init__(*args, **kwargs)
+        super(gitlfspointer, self).__init__(*args)
+        self.update(pycompat.byteskwargs(kwargs))
 
     @classmethod
     def deserialize(cls, text):