##// END OF EJS Templates
py3: make test-wireproto use print_function
Pulkit Goyal -
r28675:fcafd84b default
parent child Browse files
Show More
@@ -116,7 +116,6 b''
116 116 tests/test-url.py not using absolute_import
117 117 tests/test-url.py requires print_function
118 118 tests/test-walkrepo.py requires print_function
119 tests/test-wireproto.py requires print_function
120 119
121 120 #if py3exe
122 121 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py
@@ -301,6 +300,5 b''
301 300 tests/test-ui-config.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
302 301 tests/test-ui-verbosity.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
303 302 tests/test-walkrepo.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
304 tests/test-wireproto.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
305 303
306 304 #endif
@@ -1,4 +1,4 b''
1 from __future__ import absolute_import
1 from __future__ import absolute_import, print_function
2 2
3 3 import StringIO
4 4
@@ -52,8 +52,8 b" wireproto.commands['greet'] = (greet, 'n"
52 52 srv = serverrepo()
53 53 clt = clientpeer(srv)
54 54
55 print clt.greet("Foobar")
55 print(clt.greet("Foobar"))
56 56 b = clt.batch()
57 57 fs = [b.greet(s) for s in ["Fo, =;:<o", "Bar"]]
58 58 b.submit()
59 print [f.value for f in fs]
59 print([f.value for f in fs])
General Comments 0
You need to be logged in to leave comments. Login now