This is an archive of the discontinued Mercurial Phabricator instance.

py3: replace file() with open() in test-convert-hg-source.t
ClosedPublic

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

Details

Summary

file() is not present in Python 3.
It also makes sure we read and write in bytes mode on 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:42 AM
yuja requested changes to this revision.Feb 11 2018, 9:08 AM
yuja added a subscriber: yuja.

Needs b''.

This revision now requires changes to proceed.Feb 11 2018, 9:08 AM
pulkit edited the summary of this revision. (Show Details)Feb 12 2018, 3:48 AM
pulkit updated this revision to Diff 5481.
yuja accepted this revision.Feb 12 2018, 5:45 AM
This revision is now accepted and ready to land.Feb 12 2018, 5:45 AM
This revision was automatically updated to reflect the committed changes.