From patchwork Fri Mar 2 22:20:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2566: lfs: use byteskwargs() on some **kwargs for python 3 compat From: phabricator X-Patchwork-Id: 28733 Message-Id: <833cf9d04ec925f731061c5d602ca4a6@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Fri, 2 Mar 2018 22:20:52 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGe30be4d2ac60: lfs: use byteskwargs() on some **kwargs for python 3 compat (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2566?vs=6389&id=6395 REVISION DETAIL https://phab.mercurial-scm.org/D2566 AFFECTED FILES hgext/lfs/pointer.py CHANGE DETAILS To: durin42, #hg-reviewers, indygreg Cc: mercurial-devel 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):