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