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

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Fri Oct 12 11:15:29 EDT 2018


indygreg added a comment.


  In https://phab.mercurial-scm.org/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`.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D4991

To: durin42, #hg-reviewers, pulkit
Cc: indygreg, mercurial-devel


More information about the Mercurial-devel mailing list