This is an archive of the discontinued Mercurial Phabricator instance.

util: handle fileno() on Python 3 throwing io.UnsupportedOperation
ClosedPublic

Authored by durin42 on Feb 26 2018, 1:02 AM.

Details

Summary

Fortunately, the exception exists on Python 2 so we don't have to do
something weirder than this.

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

durin42 created this revision.Feb 26 2018, 1:02 AM
This revision was automatically updated to reflect the committed changes.