Show More
@@ -7,6 +7,7 b'' | |||||
7 | # This software may be used and distributed according to the terms of the |
|
7 | # This software may be used and distributed according to the terms of the | |
8 | # GNU General Public License version 2 or any later version. |
|
8 | # GNU General Public License version 2 or any later version. | |
9 |
|
9 | |||
|
10 | from __future__ import absolute_import, print_function | |||
10 | import re |
|
11 | import re | |
11 | import sys |
|
12 | import sys | |
12 |
|
13 | |||
@@ -82,9 +83,9 b' def main(args):' | |||||
82 | if re.match('[a-z.]+$', default): |
|
83 | if re.match('[a-z.]+$', default): | |
83 | default = '<variable>' |
|
84 | default = '<variable>' | |
84 | if name in foundopts and (ctype, default) != foundopts[name]: |
|
85 | if name in foundopts and (ctype, default) != foundopts[name]: | |
85 |
print |
|
86 | print(l) | |
86 |
print |
|
87 | print("conflict on %s: %r != %r" % (name, (ctype, default), | |
87 | foundopts[name]) |
|
88 | foundopts[name])) | |
88 | foundopts[name] = (ctype, default) |
|
89 | foundopts[name] = (ctype, default) | |
89 | carryover = '' |
|
90 | carryover = '' | |
90 | else: |
|
91 | else: | |
@@ -102,7 +103,7 b' def main(args):' | |||||
102 | ctype, default = foundopts[name] |
|
103 | ctype, default = foundopts[name] | |
103 | if default: |
|
104 | if default: | |
104 | default = ' [%s]' % default |
|
105 | default = ' [%s]' % default | |
105 |
print |
|
106 | print("undocumented: %s (%s)%s" % (name, ctype, default)) | |
106 |
|
107 | |||
107 | if __name__ == "__main__": |
|
108 | if __name__ == "__main__": | |
108 | if len(sys.argv) > 1: |
|
109 | if len(sys.argv) > 1: |
@@ -5,8 +5,6 b'' | |||||
5 | $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py |
|
5 | $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py | |
6 | contrib/check-code.py not using absolute_import |
|
6 | contrib/check-code.py not using absolute_import | |
7 | contrib/check-code.py requires print_function |
|
7 | contrib/check-code.py requires print_function | |
8 | contrib/check-config.py not using absolute_import |
|
|||
9 | contrib/check-config.py requires print_function |
|
|||
10 | contrib/debugcmdserver.py not using absolute_import |
|
8 | contrib/debugcmdserver.py not using absolute_import | |
11 | contrib/debugcmdserver.py requires print_function |
|
9 | contrib/debugcmdserver.py requires print_function | |
12 | contrib/debugshell.py not using absolute_import |
|
10 | contrib/debugshell.py not using absolute_import |
General Comments 0
You need to be logged in to leave comments.
Login now