Patchwork D2566: lfs: use byteskwargs() on some **kwargs for python 3 compat

login
register
mail settings
Submitter phabricator
Date March 2, 2018, 10:15 p.m.
Message ID <differential-rev-PHID-DREV-ioqbdn774w6staxcmwtx-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28727/
State Superseded
Headers show

Comments

phabricator - March 2, 2018, 10:15 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2566

AFFECTED FILES
  hgext/lfs/pointer.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/lfs/pointer.py b/hgext/lfs/pointer.py
--- a/hgext/lfs/pointer.py
+++ b/hgext/lfs/pointer.py
@@ -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):