diff tests/test-wireproto.py @ 28675:fcafd84bc9c5

py3: make test-wireproto use print_function
author Pulkit Goyal <7895pulkit@gmail.com>
date Tue, 29 Mar 2016 16:14:58 +0530
parents 48fd02dac1d4
children 50d11dd8ac02
line wrap: on
line diff
--- a/tests/test-wireproto.py	Tue Mar 29 17:22:08 2016 +0000
+++ b/tests/test-wireproto.py	Tue Mar 29 16:14:58 2016 +0530
@@ -1,4 +1,4 @@
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
 
 import StringIO
 
@@ -52,8 +52,8 @@
 srv = serverrepo()
 clt = clientpeer(srv)
 
-print clt.greet("Foobar")
+print(clt.greet("Foobar"))
 b = clt.batch()
 fs = [b.greet(s) for s in ["Fo, =;:<o", "Bar"]]
 b.submit()
-print [f.value for f in fs]
+print([f.value for f in fs])