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
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

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