Mercurial > hg-stable
comparison tests/test-duplicateoptions.py @ 28740:e8ecd1aa3f6c
py3: use print_function in test-duplicateoptions.py
author | Robert Stanca <robert.stanca7@gmail.com> |
---|---|
date | Sun, 03 Apr 2016 16:58:43 +0300 |
parents | d289b8847f23 |
children | ce49c8d4f0bb |
comparison
equal
deleted
inserted
replaced
28739:d289b8847f23 | 28740:e8ecd1aa3f6c |
---|---|
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, |
5 extensions, | 5 extensions, |
6 ui, | 6 ui, |
34 seenshort = globalshort.copy() | 34 seenshort = globalshort.copy() |
35 seenlong = globallong.copy() | 35 seenlong = globallong.copy() |
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 "command '" + cmd + "' has duplicate option " + str(option) | 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]) |