##// END OF EJS Templates
py3: use print_function in test-duplicateoptions.py
Robert Stanca -
r28740:e8ecd1aa default
parent child Browse files
Show More
@@ -56,7 +56,6 b''
56 56 tests/test-demandimport.py not using absolute_import
57 57 tests/test-demandimport.py requires print_function
58 58 tests/test-doctest.py not using absolute_import
59 tests/test-duplicateoptions.py requires print_function
60 59 tests/test-filecache.py not using absolute_import
61 60 tests/test-filecache.py requires print_function
62 61 tests/test-filelog.py not using absolute_import
@@ -247,7 +246,6 b''
247 246 mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
248 247 tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
249 248 tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
250 tests/test-duplicateoptions.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
251 249 tests/test-filecache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
252 250 tests/test-filelog.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
253 251 tests/test-hg-parseurl.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
@@ -1,4 +1,4 b''
1 from __future__ import absolute_import
1 from __future__ import absolute_import, print_function
2 2 import os
3 3 from mercurial import (
4 4 commands,
@@ -36,6 +36,6 b' for cmd, entry in commands.table.iterite'
36 36 for option in entry[1]:
37 37 if (option[0] and option[0] in seenshort) or \
38 38 (option[1] and option[1] in seenlong):
39 print "command '" + cmd + "' has duplicate option " + str(option)
39 print("command '" + cmd + "' has duplicate option " + str(option))
40 40 seenshort.add(option[0])
41 41 seenlong.add(option[1])
General Comments 0
You need to be logged in to leave comments. Login now