This is an archive of the discontinued Mercurial Phabricator instance.

py3: replace file() with open() in test-import-eol.t
ClosedPublic

Authored by pulkit on Feb 11 2018, 7:41 AM.

Details

Summary

file() is not present in Python 3.
This patch also adds b'' prefixes to make sure we write bytes in 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.Feb 11 2018, 7:41 AM
This revision was automatically updated to reflect the committed changes.