D5300: py3: replace str() with pycompat.bytestr() or ('%d' % int)
yuja (Yuya Nishihara)
phabricator at mercurial-scm.org
Fri Nov 23 22:20:24 EST 2018
yuja added a comment.
> - revenc = lambda x: wrev if x is None else str(x) + wrevpad
> - csetenc = lambda x: wnode if x is None else str(x) + ' ' + revenc = lambda x: wrev if x is None else ('%d' % x) + wrevpad + csetenc = lambda x: wnode if x is None else pycompat.bytestr(x) + ' '
check-code complains that the line is too long. Maybe rewrite as a function?
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5300
To: pulkit, #hg-reviewers
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list