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

Event Timeline

pulkit created this revision.Apr 5 2018, 8:31 AM
This revision was automatically updated to reflect the committed changes.