lfs: use byteskwargs() on some **kwargs for python 3 compat
Differential Revision: https://phab.mercurial-scm.org/D2566
--- 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):