This is an archive of the discontinued Mercurial Phabricator instance.

py3: add `and None` to suppress return values of .write() calls
ClosedPublic

Authored by pulkit on Jun 18 2018, 6:39 AM.

Details

Summary

.write() calls don't return anything on Python2, so we need to make sure we
suppress that on py3 too.

This makes the test pass on Python 3.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Jun 18 2018, 6:39 AM
This revision was automatically updated to reflect the committed changes.