Mercurial > public > mercurial-scm > hg-stable
diff hgext/git/gitlog.py @ 49296:ef5f5f1cbd90
py3: constant-fold some `pycompat.ispy3`
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Tue, 31 May 2022 00:50:29 +0200 |
parents | d44e3c45f0e4 |
children | 1e12ea7d8435 |
line wrap: on
line diff
--- a/hgext/git/gitlog.py Sun May 29 15:38:01 2022 +0200 +++ b/hgext/git/gitlog.py Tue May 31 00:50:29 2022 +0200 @@ -534,8 +534,7 @@ ).fetchone()[0] # This filelog is missing some data. Build the # filelog, then recurse (which will always find data). - if pycompat.ispy3: - commit = commit.decode('ascii') + commit = commit.decode('ascii') index.fill_in_filelog(self.gitrepo, self._db, commit, gp, gn) return self.parents(node) else: