git-remote-testpy: call print as a function
commitf9640ac26ce0478695487f657718157bb7b4f804
authorJohn Keeping <john@keeping.me.uk>
Sun, 20 Jan 2013 13:15:38 +0000 (20 13:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Jan 2013 03:32:35 +0000 (24 19:32 -0800)
tree7d414a1923c9831a28c467256eca34ac86e59fd9
parentd04c94a2ea21cb218b43be192d8569c0e669d080
git-remote-testpy: call print as a function

This is harmless in Python 2, which sees the parentheses as redundant
grouping, but is required for Python 3.  Since this is the only change
required to make this script just run under Python 3 without needing
2to3 it seems worthwhile.

The case of an empty print must be handled specially because in that
case Python 2 will interpret '()' as an empty tuple and print it as
'()'; inserting an empty string fixes this.

Signed-off-by: John Keeping <john@keeping.me.uk>
Acked-by: Sverre Rabbelier <srabbelier@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-remote-testpy.py