# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-04-12 09:52:56 # Node ID 5b836a4c9a1f3ebfcd44fb62be52e56222fcd7aa # Parent 1c3c9211a40e2482f8fca060c5638a90b17e22bc py3: use b'%d' to convert int to bytes instead of str() Differential Revision: https://phab.mercurial-scm.org/D3280 diff --git a/hgext/convert/git.py b/hgext/convert/git.py --- a/hgext/convert/git.py +++ b/hgext/convert/git.py @@ -372,7 +372,7 @@ class convert_git(common.converter_sourc tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:] tz = -int(tzs) * (int(tzh) * 3600 + int(tzm)) - date = tm + " " + str(tz) + date = tm + " " + (b"%d" % tz) saverev = self.ui.configbool('convert', 'git.saverev') c = common.commit(parents=parents, date=date, author=author,