This is an archive of the discontinued Mercurial Phabricator instance.

py3: suppress the output of open() using `and None`
ClosedPublic

Authored by pulkit on Apr 5 2018, 8:31 AM.

Details

Summary

This patch suppresses the output of open() on Python 3 as it does not return any
output on Python 2.

This makes test-diffstat.t pass on Python 3.5

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.Apr 5 2018, 8:31 AM
This revision was automatically updated to reflect the committed changes.