comparison hgext/commitextras.py @ 43115:4aa72cdf616f

py3: delete b'' prefix from safehasattr arguments Differential Revision: https://phab.mercurial-scm.org/D7029
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 06 Oct 2019 20:17:41 -0700
parents 687b865b95ad
children 9f70512ae2cf
comparison
equal deleted inserted replaced
43114:8197b395710e 43115:4aa72cdf616f
51 ) 51 )
52 ) 52 )
53 53
54 54
55 def _commit(orig, ui, repo, *pats, **opts): 55 def _commit(orig, ui, repo, *pats, **opts):
56 if util.safehasattr(repo, b'unfiltered'): 56 if util.safehasattr(repo, 'unfiltered'):
57 repo = repo.unfiltered() 57 repo = repo.unfiltered()
58 58
59 class repoextra(repo.__class__): 59 class repoextra(repo.__class__):
60 def commit(self, *innerpats, **inneropts): 60 def commit(self, *innerpats, **inneropts):
61 extras = opts.get(r'extra') 61 extras = opts.get(r'extra')