##// END OF EJS Templates
tests: try to import modules with Python 3...
Gregory Szorc -
r28584:d69172dd default
parent child Browse files
Show More
@@ -1,59 +1,83 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python
2 #
2 #
3 # check-py3-compat - check Python 3 compatibility of Mercurial files
3 # check-py3-compat - check Python 3 compatibility of Mercurial files
4 #
4 #
5 # Copyright 2015 Gregory Szorc <gregory.szorc@gmail.com>
5 # Copyright 2015 Gregory Szorc <gregory.szorc@gmail.com>
6 #
6 #
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 from __future__ import absolute_import, print_function
11
11
12 import ast
12 import ast
13 import imp
14 import os
13 import sys
15 import sys
16 import traceback
14
17
15 def check_compat_py2(f):
18 def check_compat_py2(f):
16 """Check Python 3 compatibility for a file with Python 2"""
19 """Check Python 3 compatibility for a file with Python 2"""
17 with open(f, 'rb') as fh:
20 with open(f, 'rb') as fh:
18 content = fh.read()
21 content = fh.read()
19 root = ast.parse(content)
22 root = ast.parse(content)
20
23
21 # Ignore empty files.
24 # Ignore empty files.
22 if not root.body:
25 if not root.body:
23 return
26 return
24
27
25 futures = set()
28 futures = set()
26 haveprint = False
29 haveprint = False
27 for node in ast.walk(root):
30 for node in ast.walk(root):
28 if isinstance(node, ast.ImportFrom):
31 if isinstance(node, ast.ImportFrom):
29 if node.module == '__future__':
32 if node.module == '__future__':
30 futures |= set(n.name for n in node.names)
33 futures |= set(n.name for n in node.names)
31 elif isinstance(node, ast.Print):
34 elif isinstance(node, ast.Print):
32 haveprint = True
35 haveprint = True
33
36
34 if 'absolute_import' not in futures:
37 if 'absolute_import' not in futures:
35 print('%s not using absolute_import' % f)
38 print('%s not using absolute_import' % f)
36 if haveprint and 'print_function' not in futures:
39 if haveprint and 'print_function' not in futures:
37 print('%s requires print_function' % f)
40 print('%s requires print_function' % f)
38
41
39 def check_compat_py3(f):
42 def check_compat_py3(f):
40 """Check Python 3 compatibility of a file with Python 3."""
43 """Check Python 3 compatibility of a file with Python 3."""
41 with open(f, 'rb') as fh:
44 with open(f, 'rb') as fh:
42 content = fh.read()
45 content = fh.read()
43
46
44 try:
47 try:
45 ast.parse(content)
48 ast.parse(content)
46 except SyntaxError as e:
49 except SyntaxError as e:
47 print('%s: invalid syntax: %s' % (f, e))
50 print('%s: invalid syntax: %s' % (f, e))
48 return
51 return
49
52
53 # Try to import the module.
54 # For now we only support mercurial.* and hgext.* modules because figuring
55 # out module paths for things not in a package can be confusing.
56 if f.startswith(('hgext/', 'mercurial/')) and not f.endswith('__init__.py'):
57 assert f.endswith('.py')
58 name = f.replace('/', '.')[:-3]
59 with open(f, 'r') as fh:
60 try:
61 imp.load_module(name, fh, '', ('py', 'r', imp.PY_SOURCE))
62 except Exception as e:
63 exc_type, exc_value, tb = sys.exc_info()
64 frame = traceback.extract_tb(tb)[-1]
65
66 if frame.filename:
67 filename = os.path.basename(frame.filename)
68 print('%s: error importing: <%s> %s (error at %s:%d)' % (
69 f, type(e).__name__, e, filename, frame.lineno))
70 else:
71 print('%s: error importing module: <%s> %s (line %d)' % (
72 f, type(e).__name__, e, frame.lineno))
73
50 if __name__ == '__main__':
74 if __name__ == '__main__':
51 if sys.version_info[0] == 2:
75 if sys.version_info[0] == 2:
52 fn = check_compat_py2
76 fn = check_compat_py2
53 else:
77 else:
54 fn = check_compat_py3
78 fn = check_compat_py3
55
79
56 for f in sys.argv[1:]:
80 for f in sys.argv[1:]:
57 fn(f)
81 fn(f)
58
82
59 sys.exit(0)
83 sys.exit(0)
@@ -1,163 +1,316 b''
1 #require test-repo
1 #require test-repo
2
2
3 $ cd "$TESTDIR"/..
3 $ cd "$TESTDIR"/..
4
4
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/import-checker.py not using absolute_import
6 contrib/import-checker.py not using absolute_import
7 contrib/import-checker.py requires print_function
7 contrib/import-checker.py requires print_function
8 doc/check-seclevel.py not using absolute_import
8 doc/check-seclevel.py not using absolute_import
9 doc/gendoc.py not using absolute_import
9 doc/gendoc.py not using absolute_import
10 doc/hgmanpage.py not using absolute_import
10 doc/hgmanpage.py not using absolute_import
11 hgext/color.py not using absolute_import
11 hgext/color.py not using absolute_import
12 hgext/eol.py not using absolute_import
12 hgext/eol.py not using absolute_import
13 hgext/extdiff.py not using absolute_import
13 hgext/extdiff.py not using absolute_import
14 hgext/factotum.py not using absolute_import
14 hgext/factotum.py not using absolute_import
15 hgext/fetch.py not using absolute_import
15 hgext/fetch.py not using absolute_import
16 hgext/fsmonitor/pywatchman/__init__.py not using absolute_import
16 hgext/fsmonitor/pywatchman/__init__.py not using absolute_import
17 hgext/fsmonitor/pywatchman/__init__.py requires print_function
17 hgext/fsmonitor/pywatchman/__init__.py requires print_function
18 hgext/fsmonitor/pywatchman/capabilities.py not using absolute_import
18 hgext/fsmonitor/pywatchman/capabilities.py not using absolute_import
19 hgext/fsmonitor/pywatchman/pybser.py not using absolute_import
19 hgext/fsmonitor/pywatchman/pybser.py not using absolute_import
20 hgext/gpg.py not using absolute_import
20 hgext/gpg.py not using absolute_import
21 hgext/graphlog.py not using absolute_import
21 hgext/graphlog.py not using absolute_import
22 hgext/hgcia.py not using absolute_import
22 hgext/hgcia.py not using absolute_import
23 hgext/hgk.py not using absolute_import
23 hgext/hgk.py not using absolute_import
24 hgext/highlight/__init__.py not using absolute_import
24 hgext/highlight/__init__.py not using absolute_import
25 hgext/highlight/highlight.py not using absolute_import
25 hgext/highlight/highlight.py not using absolute_import
26 hgext/histedit.py not using absolute_import
26 hgext/histedit.py not using absolute_import
27 hgext/largefiles/__init__.py not using absolute_import
27 hgext/largefiles/__init__.py not using absolute_import
28 hgext/largefiles/basestore.py not using absolute_import
28 hgext/largefiles/basestore.py not using absolute_import
29 hgext/largefiles/lfcommands.py not using absolute_import
29 hgext/largefiles/lfcommands.py not using absolute_import
30 hgext/largefiles/lfutil.py not using absolute_import
30 hgext/largefiles/lfutil.py not using absolute_import
31 hgext/largefiles/localstore.py not using absolute_import
31 hgext/largefiles/localstore.py not using absolute_import
32 hgext/largefiles/overrides.py not using absolute_import
32 hgext/largefiles/overrides.py not using absolute_import
33 hgext/largefiles/proto.py not using absolute_import
33 hgext/largefiles/proto.py not using absolute_import
34 hgext/largefiles/remotestore.py not using absolute_import
34 hgext/largefiles/remotestore.py not using absolute_import
35 hgext/largefiles/reposetup.py not using absolute_import
35 hgext/largefiles/reposetup.py not using absolute_import
36 hgext/largefiles/uisetup.py not using absolute_import
36 hgext/largefiles/uisetup.py not using absolute_import
37 hgext/largefiles/wirestore.py not using absolute_import
37 hgext/largefiles/wirestore.py not using absolute_import
38 hgext/mq.py not using absolute_import
38 hgext/mq.py not using absolute_import
39 hgext/rebase.py not using absolute_import
39 hgext/rebase.py not using absolute_import
40 hgext/share.py not using absolute_import
40 hgext/share.py not using absolute_import
41 hgext/win32text.py not using absolute_import
41 hgext/win32text.py not using absolute_import
42 i18n/check-translation.py not using absolute_import
42 i18n/check-translation.py not using absolute_import
43 i18n/polib.py not using absolute_import
43 i18n/polib.py not using absolute_import
44 setup.py not using absolute_import
44 setup.py not using absolute_import
45 tests/filterpyflakes.py requires print_function
45 tests/filterpyflakes.py requires print_function
46 tests/generate-working-copy-states.py requires print_function
46 tests/generate-working-copy-states.py requires print_function
47 tests/get-with-headers.py requires print_function
47 tests/get-with-headers.py requires print_function
48 tests/heredoctest.py requires print_function
48 tests/heredoctest.py requires print_function
49 tests/hypothesishelpers.py not using absolute_import
49 tests/hypothesishelpers.py not using absolute_import
50 tests/hypothesishelpers.py requires print_function
50 tests/hypothesishelpers.py requires print_function
51 tests/killdaemons.py not using absolute_import
51 tests/killdaemons.py not using absolute_import
52 tests/md5sum.py not using absolute_import
52 tests/md5sum.py not using absolute_import
53 tests/mockblackbox.py not using absolute_import
53 tests/mockblackbox.py not using absolute_import
54 tests/printenv.py not using absolute_import
54 tests/printenv.py not using absolute_import
55 tests/readlink.py not using absolute_import
55 tests/readlink.py not using absolute_import
56 tests/readlink.py requires print_function
56 tests/readlink.py requires print_function
57 tests/revlog-formatv0.py not using absolute_import
57 tests/revlog-formatv0.py not using absolute_import
58 tests/run-tests.py not using absolute_import
58 tests/run-tests.py not using absolute_import
59 tests/seq.py not using absolute_import
59 tests/seq.py not using absolute_import
60 tests/seq.py requires print_function
60 tests/seq.py requires print_function
61 tests/silenttestrunner.py not using absolute_import
61 tests/silenttestrunner.py not using absolute_import
62 tests/silenttestrunner.py requires print_function
62 tests/silenttestrunner.py requires print_function
63 tests/sitecustomize.py not using absolute_import
63 tests/sitecustomize.py not using absolute_import
64 tests/svn-safe-append.py not using absolute_import
64 tests/svn-safe-append.py not using absolute_import
65 tests/svnxml.py not using absolute_import
65 tests/svnxml.py not using absolute_import
66 tests/test-ancestor.py requires print_function
66 tests/test-ancestor.py requires print_function
67 tests/test-atomictempfile.py not using absolute_import
67 tests/test-atomictempfile.py not using absolute_import
68 tests/test-batching.py not using absolute_import
68 tests/test-batching.py not using absolute_import
69 tests/test-batching.py requires print_function
69 tests/test-batching.py requires print_function
70 tests/test-bdiff.py not using absolute_import
70 tests/test-bdiff.py not using absolute_import
71 tests/test-bdiff.py requires print_function
71 tests/test-bdiff.py requires print_function
72 tests/test-context.py not using absolute_import
72 tests/test-context.py not using absolute_import
73 tests/test-context.py requires print_function
73 tests/test-context.py requires print_function
74 tests/test-demandimport.py not using absolute_import
74 tests/test-demandimport.py not using absolute_import
75 tests/test-demandimport.py requires print_function
75 tests/test-demandimport.py requires print_function
76 tests/test-doctest.py not using absolute_import
76 tests/test-doctest.py not using absolute_import
77 tests/test-duplicateoptions.py not using absolute_import
77 tests/test-duplicateoptions.py not using absolute_import
78 tests/test-duplicateoptions.py requires print_function
78 tests/test-duplicateoptions.py requires print_function
79 tests/test-filecache.py not using absolute_import
79 tests/test-filecache.py not using absolute_import
80 tests/test-filecache.py requires print_function
80 tests/test-filecache.py requires print_function
81 tests/test-filelog.py not using absolute_import
81 tests/test-filelog.py not using absolute_import
82 tests/test-filelog.py requires print_function
82 tests/test-filelog.py requires print_function
83 tests/test-hg-parseurl.py not using absolute_import
83 tests/test-hg-parseurl.py not using absolute_import
84 tests/test-hg-parseurl.py requires print_function
84 tests/test-hg-parseurl.py requires print_function
85 tests/test-hgweb-auth.py not using absolute_import
85 tests/test-hgweb-auth.py not using absolute_import
86 tests/test-hgweb-auth.py requires print_function
86 tests/test-hgweb-auth.py requires print_function
87 tests/test-hgwebdir-paths.py not using absolute_import
87 tests/test-hgwebdir-paths.py not using absolute_import
88 tests/test-hybridencode.py not using absolute_import
88 tests/test-hybridencode.py not using absolute_import
89 tests/test-hybridencode.py requires print_function
89 tests/test-hybridencode.py requires print_function
90 tests/test-lrucachedict.py not using absolute_import
90 tests/test-lrucachedict.py not using absolute_import
91 tests/test-lrucachedict.py requires print_function
91 tests/test-lrucachedict.py requires print_function
92 tests/test-manifest.py not using absolute_import
92 tests/test-manifest.py not using absolute_import
93 tests/test-minirst.py not using absolute_import
93 tests/test-minirst.py not using absolute_import
94 tests/test-minirst.py requires print_function
94 tests/test-minirst.py requires print_function
95 tests/test-parseindex2.py not using absolute_import
95 tests/test-parseindex2.py not using absolute_import
96 tests/test-parseindex2.py requires print_function
96 tests/test-parseindex2.py requires print_function
97 tests/test-pathencode.py not using absolute_import
97 tests/test-pathencode.py not using absolute_import
98 tests/test-pathencode.py requires print_function
98 tests/test-pathencode.py requires print_function
99 tests/test-propertycache.py not using absolute_import
99 tests/test-propertycache.py not using absolute_import
100 tests/test-propertycache.py requires print_function
100 tests/test-propertycache.py requires print_function
101 tests/test-revlog-ancestry.py not using absolute_import
101 tests/test-revlog-ancestry.py not using absolute_import
102 tests/test-revlog-ancestry.py requires print_function
102 tests/test-revlog-ancestry.py requires print_function
103 tests/test-run-tests.py not using absolute_import
103 tests/test-run-tests.py not using absolute_import
104 tests/test-simplemerge.py not using absolute_import
104 tests/test-simplemerge.py not using absolute_import
105 tests/test-status-inprocess.py not using absolute_import
105 tests/test-status-inprocess.py not using absolute_import
106 tests/test-status-inprocess.py requires print_function
106 tests/test-status-inprocess.py requires print_function
107 tests/test-symlink-os-yes-fs-no.py not using absolute_import
107 tests/test-symlink-os-yes-fs-no.py not using absolute_import
108 tests/test-trusted.py not using absolute_import
108 tests/test-trusted.py not using absolute_import
109 tests/test-trusted.py requires print_function
109 tests/test-trusted.py requires print_function
110 tests/test-ui-color.py not using absolute_import
110 tests/test-ui-color.py not using absolute_import
111 tests/test-ui-color.py requires print_function
111 tests/test-ui-color.py requires print_function
112 tests/test-ui-config.py not using absolute_import
112 tests/test-ui-config.py not using absolute_import
113 tests/test-ui-config.py requires print_function
113 tests/test-ui-config.py requires print_function
114 tests/test-ui-verbosity.py not using absolute_import
114 tests/test-ui-verbosity.py not using absolute_import
115 tests/test-ui-verbosity.py requires print_function
115 tests/test-ui-verbosity.py requires print_function
116 tests/test-url.py not using absolute_import
116 tests/test-url.py not using absolute_import
117 tests/test-url.py requires print_function
117 tests/test-url.py requires print_function
118 tests/test-walkrepo.py requires print_function
118 tests/test-walkrepo.py requires print_function
119 tests/test-wireproto.py requires print_function
119 tests/test-wireproto.py requires print_function
120 tests/tinyproxy.py requires print_function
120 tests/tinyproxy.py requires print_function
121
121
122 #if py3exe
122 #if py3exe
123 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py
123 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py
124 contrib/check-code.py: invalid syntax: (unicode error) 'unicodeescape' codec can't decode bytes in position 18-19: malformed \N character escape (<unknown>, line 106)
124 contrib/check-code.py: invalid syntax: (unicode error) 'unicodeescape' codec can't decode bytes in position 18-19: malformed \N character escape (<unknown>, line 106)
125 contrib/import-checker.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 569)
125 contrib/import-checker.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 569)
126 contrib/revsetbenchmarks.py: invalid syntax: invalid syntax (<unknown>, line 186)
126 contrib/revsetbenchmarks.py: invalid syntax: invalid syntax (<unknown>, line 186)
127 doc/hgmanpage.py: invalid syntax: invalid syntax (<unknown>, line 286)
127 doc/hgmanpage.py: invalid syntax: invalid syntax (<unknown>, line 286)
128 hgext/acl.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
129 hgext/automv.py: error importing module: <SyntaxError> invalid syntax (commands.py, line 3324) (line 29)
130 hgext/blackbox.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
131 hgext/bugzilla.py: error importing module: <ImportError> No module named 'urlparse' (line 284)
132 hgext/censor.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
133 hgext/chgserver.py: error importing module: <ImportError> No module named 'SocketServer' (line 43)
134 hgext/children.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
135 hgext/churn.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
136 hgext/clonebundles.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
128 hgext/color.py: invalid syntax: invalid syntax (<unknown>, line 551)
137 hgext/color.py: invalid syntax: invalid syntax (<unknown>, line 551)
138 hgext/convert/bzr.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line 18)
139 hgext/convert/common.py: error importing module: <ImportError> No module named 'cPickle' (line 10)
140 hgext/convert/convcmd.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
141 hgext/convert/cvs.py: error importing module: <ImportError> No module named 'cStringIO' (line 9)
142 hgext/convert/cvsps.py: error importing module: <ImportError> No module named 'cPickle' (line 9)
143 hgext/convert/darcs.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
144 hgext/convert/filemap.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line 14)
145 hgext/convert/git.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
146 hgext/convert/gnuarch.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
147 hgext/convert/hg.py: error importing module: <ImportError> No module named 'cStringIO' (line 21)
148 hgext/convert/monotone.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
149 hgext/convert/p4.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
150 hgext/convert/subversion.py: error importing module: <ImportError> No module named 'cPickle' (line 6)
151 hgext/convert/transport.py: error importing module: <ImportError> No module named 'svn.client' (line 21)
152 hgext/eol.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
153 hgext/extdiff.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
154 hgext/factotum.py: error importing: <ImportError> No module named 'cStringIO' (error at url.py:13)
155 hgext/fetch.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
156 hgext/fsmonitor/state.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
157 hgext/fsmonitor/watchmanclient.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
158 hgext/gpg.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
159 hgext/graphlog.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
160 hgext/hgcia.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
161 hgext/hgk.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
162 hgext/highlight/highlight.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
163 hgext/histedit.py: error importing module: <SyntaxError> invalid syntax (bundle2.py, line 977) (line 177)
164 hgext/keyword.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
165 hgext/largefiles/basestore.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
166 hgext/largefiles/lfcommands.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
167 hgext/largefiles/lfutil.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
168 hgext/largefiles/localstore.py: error importing module: <ImportError> No module named 'lfutil' (line 13)
169 hgext/largefiles/overrides.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
170 hgext/largefiles/proto.py: error importing module: <ImportError> No module named 'urllib2' (line 7)
171 hgext/largefiles/remotestore.py: error importing module: <ImportError> No module named 'urllib2' (line 9)
172 hgext/largefiles/reposetup.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
173 hgext/largefiles/uisetup.py: error importing module: <SyntaxError> invalid syntax (archival.py, line 234) (line 11)
174 hgext/largefiles/wirestore.py: error importing module: <ImportError> No module named 'lfutil' (line 8)
175 hgext/mq.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
176 hgext/notify.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
177 hgext/pager.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
178 hgext/patchbomb.py: error importing module: <ImportError> No module named 'cStringIO' (line 68)
179 hgext/purge.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
180 hgext/rebase.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
181 hgext/record.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
182 hgext/relink.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
183 hgext/schemes.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
184 hgext/share.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
185 hgext/shelve.py: error importing module: <SyntaxError> invalid syntax (bundle2.py, line 977) (line 28)
186 hgext/strip.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
187 hgext/transplant.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
188 hgext/win32text.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
189 mercurial/ancestor.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
129 mercurial/archival.py: invalid syntax: invalid syntax (<unknown>, line 234)
190 mercurial/archival.py: invalid syntax: invalid syntax (<unknown>, line 234)
191 mercurial/bookmarks.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
192 mercurial/branchmap.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
130 mercurial/bundle2.py: invalid syntax: invalid syntax (<unknown>, line 977)
193 mercurial/bundle2.py: invalid syntax: invalid syntax (<unknown>, line 977)
194 mercurial/bundlerepo.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
195 mercurial/byterange.py: error importing module: <ImportError> No module named 'urllib2' (line 30)
196 mercurial/changegroup.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
197 mercurial/changelog.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
198 mercurial/cmdutil.py: error importing module: <ImportError> No module named 'cStringIO' (line 10)
131 mercurial/commands.py: invalid syntax: invalid syntax (<unknown>, line 3324)
199 mercurial/commands.py: invalid syntax: invalid syntax (<unknown>, line 3324)
200 mercurial/commandserver.py: error importing module: <ImportError> No module named 'SocketServer' (line 10)
201 mercurial/config.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
202 mercurial/context.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
203 mercurial/copies.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
204 mercurial/crecord.py: error importing module: <ImportError> No module named 'cStringIO' (line 13)
205 mercurial/dagutil.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
206 mercurial/destutil.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
207 mercurial/dirstate.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
208 mercurial/discovery.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
209 mercurial/dispatch.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
210 mercurial/exchange.py: error importing module: <ImportError> No module named 'urllib2' (line 12)
211 mercurial/extensions.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
212 mercurial/filelog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
213 mercurial/filemerge.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
214 mercurial/fileset.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
215 mercurial/formatter.py: error importing module: <ImportError> No module named 'cPickle' (line 10)
216 mercurial/graphmod.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
217 mercurial/hbisect.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
218 mercurial/help.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
219 mercurial/hg.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
220 mercurial/hgweb/common.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line 11)
221 mercurial/hgweb/hgweb_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 14)
222 mercurial/hgweb/hgwebdir_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 15)
223 mercurial/hgweb/protocol.py: error importing module: <ImportError> No module named 'cStringIO' (line 10)
224 mercurial/hgweb/request.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 15)
225 mercurial/hgweb/server.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line 11)
226 mercurial/hgweb/webcommands.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 16)
227 mercurial/hgweb/webutil.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 16)
228 mercurial/hgweb/wsgicgi.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 16)
229 mercurial/hook.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
230 mercurial/httpclient/_readers.py: error importing module: <ImportError> No module named 'httplib' (line 36)
231 mercurial/httpconnection.py: error importing module: <ImportError> No module named 'urllib2' (line 17)
232 mercurial/httppeer.py: error importing module: <ImportError> No module named 'httplib' (line 12)
233 mercurial/keepalive.py: error importing module: <ImportError> No module named 'httplib' (line 113)
234 mercurial/localrepo.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
235 mercurial/lock.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
236 mercurial/mail.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
237 mercurial/manifest.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
238 mercurial/match.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
239 mercurial/mdiff.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
240 mercurial/merge.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
241 mercurial/minirst.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
242 mercurial/namespaces.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
243 mercurial/node.py: error importing module: <TypeError> a bytes-like object is required, not 'str' (line 18)
244 mercurial/obsolete.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
245 mercurial/patch.py: error importing module: <ImportError> No module named 'cStringIO' (line 11)
246 mercurial/pathutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
247 mercurial/peer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
248 mercurial/phases.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
249 mercurial/pure/mpatch.py: error importing module: <ImportError> No module named 'cStringIO' (line 10)
250 mercurial/pure/parsers.py: error importing module: <ImportError> No module named 'cStringIO' (line 10)
251 mercurial/pushkey.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
252 mercurial/pvec.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
253 mercurial/registrar.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
254 mercurial/repair.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
255 mercurial/repoview.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
256 mercurial/revlog.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
257 mercurial/revset.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
258 mercurial/scmutil.py: error importing module: <ImportError> No module named 'Queue' (line 10)
259 mercurial/scmwindows.py: error importing module: <ImportError> No module named '_winreg' (line 3)
260 mercurial/setdiscovery.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
261 mercurial/similar.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
262 mercurial/simplemerge.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
263 mercurial/sshpeer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
264 mercurial/sshserver.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
265 mercurial/sslutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
266 mercurial/statichttprepo.py: error importing module: <ImportError> No module named 'urllib2' (line 15)
267 mercurial/store.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
268 mercurial/streamclone.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
269 mercurial/subrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
270 mercurial/tagmerge.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
271 mercurial/tags.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
272 mercurial/templatefilters.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
273 mercurial/templatekw.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
274 mercurial/templater.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
275 mercurial/transaction.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
276 mercurial/treediscovery.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
277 mercurial/ui.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
278 mercurial/unionrepo.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
279 mercurial/url.py: error importing module: <ImportError> No module named 'cStringIO' (line 13)
280 mercurial/util.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
281 mercurial/verify.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
282 mercurial/win32.py: error importing module: <ImportError> No module named 'msvcrt' (line 12)
283 mercurial/windows.py: error importing module: <ImportError> No module named '_winreg' (line 10)
284 mercurial/wireproto.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at node.py:18)
132 tests/filterpyflakes.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 61)
285 tests/filterpyflakes.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 61)
133 tests/generate-working-copy-states.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 69)
286 tests/generate-working-copy-states.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 69)
134 tests/get-with-headers.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 44)
287 tests/get-with-headers.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 44)
135 tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line 7)
288 tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line 7)
136 tests/seq.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 23)
289 tests/seq.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 23)
137 tests/silenttestrunner.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 11)
290 tests/silenttestrunner.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 11)
138 tests/test-ancestor.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 187)
291 tests/test-ancestor.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 187)
139 tests/test-batching.py: invalid syntax: invalid syntax (<unknown>, line 34)
292 tests/test-batching.py: invalid syntax: invalid syntax (<unknown>, line 34)
140 tests/test-bdiff.py: invalid syntax: invalid syntax (<unknown>, line 10)
293 tests/test-bdiff.py: invalid syntax: invalid syntax (<unknown>, line 10)
141 tests/test-context.py: invalid syntax: invalid syntax (<unknown>, line 21)
294 tests/test-context.py: invalid syntax: invalid syntax (<unknown>, line 21)
142 tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line 26)
295 tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line 26)
143 tests/test-duplicateoptions.py: invalid syntax: invalid syntax (<unknown>, line 34)
296 tests/test-duplicateoptions.py: invalid syntax: invalid syntax (<unknown>, line 34)
144 tests/test-filecache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 23)
297 tests/test-filecache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 23)
145 tests/test-filelog.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 33)
298 tests/test-filelog.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 33)
146 tests/test-hg-parseurl.py: invalid syntax: invalid syntax (<unknown>, line 4)
299 tests/test-hg-parseurl.py: invalid syntax: invalid syntax (<unknown>, line 4)
147 tests/test-hgweb-auth.py: invalid syntax: invalid syntax (<unknown>, line 24)
300 tests/test-hgweb-auth.py: invalid syntax: invalid syntax (<unknown>, line 24)
148 tests/test-hybridencode.py: invalid syntax: invalid syntax (<unknown>, line 5)
301 tests/test-hybridencode.py: invalid syntax: invalid syntax (<unknown>, line 5)
149 tests/test-lrucachedict.py: invalid syntax: invalid syntax (<unknown>, line 6)
302 tests/test-lrucachedict.py: invalid syntax: invalid syntax (<unknown>, line 6)
150 tests/test-minirst.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 6)
303 tests/test-minirst.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 6)
151 tests/test-parseindex2.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 173)
304 tests/test-parseindex2.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 173)
152 tests/test-propertycache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 50)
305 tests/test-propertycache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 50)
153 tests/test-revlog-ancestry.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 49)
306 tests/test-revlog-ancestry.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 49)
154 tests/test-status-inprocess.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 8)
307 tests/test-status-inprocess.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 8)
155 tests/test-trusted.py: invalid syntax: invalid syntax (<unknown>, line 60)
308 tests/test-trusted.py: invalid syntax: invalid syntax (<unknown>, line 60)
156 tests/test-ui-color.py: invalid syntax: invalid syntax (<unknown>, line 11)
309 tests/test-ui-color.py: invalid syntax: invalid syntax (<unknown>, line 11)
157 tests/test-ui-config.py: invalid syntax: invalid syntax (<unknown>, line 32)
310 tests/test-ui-config.py: invalid syntax: invalid syntax (<unknown>, line 32)
158 tests/test-ui-verbosity.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 9)
311 tests/test-ui-verbosity.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 9)
159 tests/test-walkrepo.py: invalid syntax: invalid syntax (<unknown>, line 37)
312 tests/test-walkrepo.py: invalid syntax: invalid syntax (<unknown>, line 37)
160 tests/test-wireproto.py: invalid syntax: invalid syntax (<unknown>, line 55)
313 tests/test-wireproto.py: invalid syntax: invalid syntax (<unknown>, line 55)
161 tests/tinyproxy.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 53)
314 tests/tinyproxy.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line 53)
162
315
163 #endif
316 #endif
General Comments 0
You need to be logged in to leave comments. Login now