This is an archive of the discontinued Mercurial Phabricator instance.

tests: make python oneliner portable to python 3 in remotefilelog test
ClosedPublic

Authored by durin42 on Jan 16 2019, 11:16 AM.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

durin42 created this revision.Jan 16 2019, 11:16 AM
pulkit accepted this revision.Jan 16 2019, 11:42 AM
pulkit added a subscriber: pulkit.

It's weird that print works as a function too in Python 2.

In D5602#82808, @pulkit wrote:

It's weird that print works as a function too in Python 2.

It's a hack: in the case of print(one_item) the parens are a noop on Python 2 and a function call on Python 3.

This revision was automatically updated to reflect the committed changes.