This is an archive of the discontinued Mercurial Phabricator instance.

tests: ensure print() statements in test-extension.t all flush
ClosedPublic

Authored by durin42 on Oct 12 2018, 10:16 AM.

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.Oct 12 2018, 10:16 AM
pulkit accepted this revision.Oct 12 2018, 10:28 AM

This one leads to SyntaxError on Python 2. I suspect this is because of missing 'from future import print_function' but I am also confused how it works right now then.

In D4991#74993, @pulkit wrote:

This one leads to SyntaxError on Python 2. I suspect this is because of missing 'from future import print_function' but I am also confused how it works right now then.

print() in Python 2.7 works. It just doesn't support the extra arguments unless you from __future__ import print_function.

durin42 updated this revision to Diff 11891.Oct 12 2018, 11:23 AM
durin42 updated this revision to Diff 11896.Oct 12 2018, 11:34 AM
pulkit accepted this revision.Oct 12 2018, 11:42 AM
This revision was automatically updated to reflect the committed changes.