D3328: py3: use b"%d" instead of str() to convert int to bytes
This revision was automatically updated to reflect the committed changes. Closed by commit rHG701c261fba83: py3: use b%d instead of str() to convert int to bytes (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3328?vs=8148=8203 REVISION DETAIL https://phab.mercurial-scm.org/D3328 AFFECTED FILES tests/test-clone-uncompressed.t CHANGE DETAILS diff --git a/tests/test-clone-uncompressed.t b/tests/test-clone-uncompressed.t --- a/tests/test-clone-uncompressed.t +++ b/tests/test-clone-uncompressed.t @@ -18,7 +18,7 @@ $ hg -q commit -A -m initial >>> for i in range(1024): ... with open(str(i), 'wb') as fh: - ... fh.write(str(i)) + ... fh.write(b"%d" % i) and None $ hg -q commit -A -m 'add a lot of files' $ hg st $ hg --config server.uncompressed=false serve -p $HGPORT -d --pid-file=hg.pid To: pulkit, #hg-reviewers, durin42 Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D3328: py3: use b"%d" instead of str() to convert int to bytes
pulkit created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY While I was here, I added 'and None' to suppress return values of .write() calls. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3328 AFFECTED FILES tests/test-clone-uncompressed.t CHANGE DETAILS diff --git a/tests/test-clone-uncompressed.t b/tests/test-clone-uncompressed.t --- a/tests/test-clone-uncompressed.t +++ b/tests/test-clone-uncompressed.t @@ -18,7 +18,7 @@ $ hg -q commit -A -m initial >>> for i in range(1024): ... with open(str(i), 'wb') as fh: - ... fh.write(str(i)) + ... fh.write(b"%d" % i) and None $ hg -q commit -A -m 'add a lot of files' $ hg st $ hg --config server.uncompressed=false serve -p $HGPORT -d --pid-file=hg.pid To: pulkit, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel