##// END OF EJS Templates
tests: make tinyproxy.py use print_function
Pulkit Goyal -
r28646:f452c1cf default
parent child Browse files
Show More
@@ -1,308 +1,306 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
121
120
122 #if py3exe
121 #if py3exe
123 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py
122 $ 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 *-*: malformed \N character escape (<unknown>, line *) (glob)
123 contrib/check-code.py: invalid syntax: (unicode error) 'unicodeescape' codec can't decode bytes in position *-*: malformed \N character escape (<unknown>, line *) (glob)
125 contrib/import-checker.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
124 contrib/import-checker.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
126 doc/hgmanpage.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
125 doc/hgmanpage.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
127 hgext/acl.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
126 hgext/acl.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
128 hgext/automv.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
127 hgext/automv.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
129 hgext/blackbox.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
128 hgext/blackbox.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
130 hgext/bugzilla.py: error importing module: <ImportError> No module named 'urlparse' (line 284)
129 hgext/bugzilla.py: error importing module: <ImportError> No module named 'urlparse' (line 284)
131 hgext/censor.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
130 hgext/censor.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
132 hgext/chgserver.py: error importing module: <ImportError> No module named 'SocketServer' (line 43)
131 hgext/chgserver.py: error importing module: <ImportError> No module named 'SocketServer' (line 43)
133 hgext/children.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
132 hgext/children.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
134 hgext/churn.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
133 hgext/churn.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
135 hgext/clonebundles.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
134 hgext/clonebundles.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
136 hgext/color.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
135 hgext/color.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
137 hgext/convert/bzr.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line 18)
136 hgext/convert/bzr.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line 18)
138 hgext/convert/common.py: error importing module: <ImportError> No module named 'cPickle' (line 10)
137 hgext/convert/common.py: error importing module: <ImportError> No module named 'cPickle' (line 10)
139 hgext/convert/convcmd.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
138 hgext/convert/convcmd.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
140 hgext/convert/cvs.py: error importing module: <ImportError> No module named 'cStringIO' (line 9)
139 hgext/convert/cvs.py: error importing module: <ImportError> No module named 'cStringIO' (line 9)
141 hgext/convert/cvsps.py: error importing module: <ImportError> No module named 'cPickle' (line 9)
140 hgext/convert/cvsps.py: error importing module: <ImportError> No module named 'cPickle' (line 9)
142 hgext/convert/darcs.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
141 hgext/convert/darcs.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
143 hgext/convert/filemap.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line 14)
142 hgext/convert/filemap.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line 14)
144 hgext/convert/git.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
143 hgext/convert/git.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
145 hgext/convert/gnuarch.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
144 hgext/convert/gnuarch.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
146 hgext/convert/hg.py: error importing module: <ImportError> No module named 'cStringIO' (line 21)
145 hgext/convert/hg.py: error importing module: <ImportError> No module named 'cStringIO' (line 21)
147 hgext/convert/monotone.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
146 hgext/convert/monotone.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
148 hgext/convert/p4.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
147 hgext/convert/p4.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
149 hgext/convert/subversion.py: error importing module: <ImportError> No module named 'cPickle' (line 6)
148 hgext/convert/subversion.py: error importing module: <ImportError> No module named 'cPickle' (line 6)
150 hgext/convert/transport.py: error importing module: <ImportError> No module named 'svn.client' (line 21)
149 hgext/convert/transport.py: error importing module: <ImportError> No module named 'svn.client' (line 21)
151 hgext/eol.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
150 hgext/eol.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
152 hgext/extdiff.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
151 hgext/extdiff.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
153 hgext/factotum.py: error importing: <ImportError> No module named 'cStringIO' (error at url.py:13)
152 hgext/factotum.py: error importing: <ImportError> No module named 'cStringIO' (error at url.py:13)
154 hgext/fetch.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
153 hgext/fetch.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
155 hgext/fsmonitor/state.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
154 hgext/fsmonitor/state.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
156 hgext/fsmonitor/watchmanclient.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
155 hgext/fsmonitor/watchmanclient.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
157 hgext/gpg.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
156 hgext/gpg.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
158 hgext/graphlog.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
157 hgext/graphlog.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
159 hgext/hgcia.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
158 hgext/hgcia.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
160 hgext/hgk.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
159 hgext/hgk.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
161 hgext/highlight/highlight.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
160 hgext/highlight/highlight.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
162 hgext/histedit.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
161 hgext/histedit.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
163 hgext/keyword.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
162 hgext/keyword.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
164 hgext/largefiles/basestore.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
163 hgext/largefiles/basestore.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
165 hgext/largefiles/lfcommands.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
164 hgext/largefiles/lfcommands.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
166 hgext/largefiles/lfutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
165 hgext/largefiles/lfutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
167 hgext/largefiles/localstore.py: error importing module: <ImportError> No module named 'lfutil' (line 13)
166 hgext/largefiles/localstore.py: error importing module: <ImportError> No module named 'lfutil' (line 13)
168 hgext/largefiles/overrides.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
167 hgext/largefiles/overrides.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
169 hgext/largefiles/proto.py: error importing module: <ImportError> No module named 'urllib2' (line 7)
168 hgext/largefiles/proto.py: error importing module: <ImportError> No module named 'urllib2' (line 7)
170 hgext/largefiles/remotestore.py: error importing module: <ImportError> No module named 'urllib2' (line 9)
169 hgext/largefiles/remotestore.py: error importing module: <ImportError> No module named 'urllib2' (line 9)
171 hgext/largefiles/reposetup.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
170 hgext/largefiles/reposetup.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
172 hgext/largefiles/uisetup.py: error importing module: <SyntaxError> invalid syntax (archival.py, line *) (line *) (glob)
171 hgext/largefiles/uisetup.py: error importing module: <SyntaxError> invalid syntax (archival.py, line *) (line *) (glob)
173 hgext/largefiles/wirestore.py: error importing module: <ImportError> No module named 'lfutil' (line 8)
172 hgext/largefiles/wirestore.py: error importing module: <ImportError> No module named 'lfutil' (line 8)
174 hgext/mq.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
173 hgext/mq.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
175 hgext/notify.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
174 hgext/notify.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
176 hgext/pager.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
175 hgext/pager.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
177 hgext/patchbomb.py: error importing module: <ImportError> No module named 'cStringIO' (line 68)
176 hgext/patchbomb.py: error importing module: <ImportError> No module named 'cStringIO' (line 68)
178 hgext/purge.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
177 hgext/purge.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
179 hgext/rebase.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
178 hgext/rebase.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
180 hgext/record.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
179 hgext/record.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
181 hgext/relink.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
180 hgext/relink.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
182 hgext/schemes.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
181 hgext/schemes.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
183 hgext/share.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
182 hgext/share.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
184 hgext/shelve.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
183 hgext/shelve.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
185 hgext/strip.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
184 hgext/strip.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
186 hgext/transplant.py: error importing: <SyntaxError> invalid syntax (bundle*.py, line *) (error at bundlerepo.py:*) (glob)
185 hgext/transplant.py: error importing: <SyntaxError> invalid syntax (bundle*.py, line *) (error at bundlerepo.py:*) (glob)
187 hgext/win32text.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
186 hgext/win32text.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
188 mercurial/archival.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
187 mercurial/archival.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
189 mercurial/bookmarks.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
188 mercurial/bookmarks.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
190 mercurial/branchmap.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:10)
189 mercurial/branchmap.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:10)
191 mercurial/bundle*.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
190 mercurial/bundle*.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
192 mercurial/bundlerepo.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
191 mercurial/bundlerepo.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
193 mercurial/byterange.py: error importing module: <ImportError> No module named 'urllib2' (line 30)
192 mercurial/byterange.py: error importing module: <ImportError> No module named 'urllib2' (line 30)
194 mercurial/changegroup.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:10)
193 mercurial/changegroup.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:10)
195 mercurial/changelog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
194 mercurial/changelog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
196 mercurial/cmdutil.py: error importing module: <ImportError> No module named 'cStringIO' (line 10)
195 mercurial/cmdutil.py: error importing module: <ImportError> No module named 'cStringIO' (line 10)
197 mercurial/commands.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
196 mercurial/commands.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
198 mercurial/commandserver.py: error importing module: <ImportError> No module named 'SocketServer' (line 10)
197 mercurial/commandserver.py: error importing module: <ImportError> No module named 'SocketServer' (line 10)
199 mercurial/config.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
198 mercurial/config.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
200 mercurial/context.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
199 mercurial/context.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
201 mercurial/copies.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
200 mercurial/copies.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
202 mercurial/crecord.py: error importing module: <ImportError> No module named 'cStringIO' (line 13)
201 mercurial/crecord.py: error importing module: <ImportError> No module named 'cStringIO' (line 13)
203 mercurial/destutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
202 mercurial/destutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
204 mercurial/dirstate.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
203 mercurial/dirstate.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
205 mercurial/discovery.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
204 mercurial/discovery.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
206 mercurial/dispatch.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
205 mercurial/dispatch.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
207 mercurial/exchange.py: error importing module: <ImportError> No module named 'urllib2' (line 12)
206 mercurial/exchange.py: error importing module: <ImportError> No module named 'urllib2' (line 12)
208 mercurial/extensions.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
207 mercurial/extensions.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
209 mercurial/filelog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
208 mercurial/filelog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
210 mercurial/filemerge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
209 mercurial/filemerge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
211 mercurial/fileset.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
210 mercurial/fileset.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
212 mercurial/formatter.py: error importing module: <ImportError> No module named 'cPickle' (line 10)
211 mercurial/formatter.py: error importing module: <ImportError> No module named 'cPickle' (line 10)
213 mercurial/graphmod.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
212 mercurial/graphmod.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
214 mercurial/help.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
213 mercurial/help.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
215 mercurial/hg.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
214 mercurial/hg.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
216 mercurial/hgweb/common.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line 11)
215 mercurial/hgweb/common.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line 11)
217 mercurial/hgweb/hgweb_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 14)
216 mercurial/hgweb/hgweb_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 14)
218 mercurial/hgweb/hgwebdir_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 15)
217 mercurial/hgweb/hgwebdir_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 15)
219 mercurial/hgweb/protocol.py: error importing module: <ImportError> No module named 'cStringIO' (line 10)
218 mercurial/hgweb/protocol.py: error importing module: <ImportError> No module named 'cStringIO' (line 10)
220 mercurial/hgweb/request.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 15)
219 mercurial/hgweb/request.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 15)
221 mercurial/hgweb/server.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line 11)
220 mercurial/hgweb/server.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line 11)
222 mercurial/hgweb/webcommands.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 16)
221 mercurial/hgweb/webcommands.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 16)
223 mercurial/hgweb/webutil.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 16)
222 mercurial/hgweb/webutil.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 16)
224 mercurial/hgweb/wsgicgi.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 16)
223 mercurial/hgweb/wsgicgi.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line 16)
225 mercurial/hook.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
224 mercurial/hook.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
226 mercurial/httpclient/_readers.py: error importing module: <ImportError> No module named 'httplib' (line 36)
225 mercurial/httpclient/_readers.py: error importing module: <ImportError> No module named 'httplib' (line 36)
227 mercurial/httpconnection.py: error importing module: <ImportError> No module named 'urllib2' (line 17)
226 mercurial/httpconnection.py: error importing module: <ImportError> No module named 'urllib2' (line 17)
228 mercurial/httppeer.py: error importing module: <ImportError> No module named 'httplib' (line 12)
227 mercurial/httppeer.py: error importing module: <ImportError> No module named 'httplib' (line 12)
229 mercurial/keepalive.py: error importing module: <ImportError> No module named 'httplib' (line 113)
228 mercurial/keepalive.py: error importing module: <ImportError> No module named 'httplib' (line 113)
230 mercurial/localrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
229 mercurial/localrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
231 mercurial/lock.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
230 mercurial/lock.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
232 mercurial/mail.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
231 mercurial/mail.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
233 mercurial/manifest.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
232 mercurial/manifest.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
234 mercurial/match.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
233 mercurial/match.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
235 mercurial/mdiff.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
234 mercurial/mdiff.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
236 mercurial/merge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
235 mercurial/merge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
237 mercurial/minirst.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
236 mercurial/minirst.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
238 mercurial/namespaces.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:11)
237 mercurial/namespaces.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:11)
239 mercurial/obsolete.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
238 mercurial/obsolete.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
240 mercurial/patch.py: error importing module: <ImportError> No module named 'cStringIO' (line 11)
239 mercurial/patch.py: error importing module: <ImportError> No module named 'cStringIO' (line 11)
241 mercurial/pathutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
240 mercurial/pathutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
242 mercurial/peer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
241 mercurial/peer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
243 mercurial/pure/mpatch.py: error importing module: <ImportError> No module named 'cStringIO' (line 10)
242 mercurial/pure/mpatch.py: error importing module: <ImportError> No module named 'cStringIO' (line 10)
244 mercurial/pure/parsers.py: error importing module: <ImportError> No module named 'cStringIO' (line 10)
243 mercurial/pure/parsers.py: error importing module: <ImportError> No module named 'cStringIO' (line 10)
245 mercurial/pushkey.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
244 mercurial/pushkey.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
246 mercurial/pvec.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
245 mercurial/pvec.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
247 mercurial/registrar.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
246 mercurial/registrar.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
248 mercurial/repair.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
247 mercurial/repair.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
249 mercurial/repoview.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
248 mercurial/repoview.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
250 mercurial/revlog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
249 mercurial/revlog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
251 mercurial/revset.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
250 mercurial/revset.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
252 mercurial/scmutil.py: error importing module: <ImportError> No module named 'Queue' (line 10)
251 mercurial/scmutil.py: error importing module: <ImportError> No module named 'Queue' (line 10)
253 mercurial/scmwindows.py: error importing module: <ImportError> No module named '_winreg' (line 3)
252 mercurial/scmwindows.py: error importing module: <ImportError> No module named '_winreg' (line 3)
254 mercurial/similar.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
253 mercurial/similar.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
255 mercurial/simplemerge.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
254 mercurial/simplemerge.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
256 mercurial/sshpeer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
255 mercurial/sshpeer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
257 mercurial/sshserver.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
256 mercurial/sshserver.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
258 mercurial/sslutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
257 mercurial/sslutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
259 mercurial/statichttprepo.py: error importing module: <ImportError> No module named 'urllib2' (line 15)
258 mercurial/statichttprepo.py: error importing module: <ImportError> No module named 'urllib2' (line 15)
260 mercurial/store.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
259 mercurial/store.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
261 mercurial/streamclone.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:10)
260 mercurial/streamclone.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:10)
262 mercurial/subrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
261 mercurial/subrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:10)
263 mercurial/tagmerge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
262 mercurial/tagmerge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
264 mercurial/tags.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
263 mercurial/tags.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
265 mercurial/templatefilters.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:11)
264 mercurial/templatefilters.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:11)
266 mercurial/templatekw.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:11)
265 mercurial/templatekw.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:11)
267 mercurial/templater.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
266 mercurial/templater.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
268 mercurial/transaction.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
267 mercurial/transaction.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
269 mercurial/ui.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
268 mercurial/ui.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
270 mercurial/unionrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
269 mercurial/unionrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
271 mercurial/url.py: error importing module: <ImportError> No module named 'cStringIO' (line 13)
270 mercurial/url.py: error importing module: <ImportError> No module named 'cStringIO' (line 13)
272 mercurial/util.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
271 mercurial/util.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:10)
273 mercurial/verify.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
272 mercurial/verify.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:10)
274 mercurial/win32.py: error importing module: <ImportError> No module named 'msvcrt' (line 12)
273 mercurial/win32.py: error importing module: <ImportError> No module named 'msvcrt' (line 12)
275 mercurial/windows.py: error importing module: <ImportError> No module named '_winreg' (line 10)
274 mercurial/windows.py: error importing module: <ImportError> No module named '_winreg' (line 10)
276 mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
275 mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
277 tests/filterpyflakes.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
276 tests/filterpyflakes.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
278 tests/generate-working-copy-states.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
277 tests/generate-working-copy-states.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
279 tests/get-with-headers.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
278 tests/get-with-headers.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
280 tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
279 tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
281 tests/seq.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
280 tests/seq.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
282 tests/silenttestrunner.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
281 tests/silenttestrunner.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
283 tests/test-ancestor.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
282 tests/test-ancestor.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
284 tests/test-batching.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
283 tests/test-batching.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
285 tests/test-bdiff.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
284 tests/test-bdiff.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
286 tests/test-context.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
285 tests/test-context.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
287 tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
286 tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
288 tests/test-duplicateoptions.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
287 tests/test-duplicateoptions.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
289 tests/test-filecache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
288 tests/test-filecache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
290 tests/test-filelog.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
289 tests/test-filelog.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
291 tests/test-hg-parseurl.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
290 tests/test-hg-parseurl.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
292 tests/test-hgweb-auth.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
291 tests/test-hgweb-auth.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
293 tests/test-hybridencode.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
292 tests/test-hybridencode.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
294 tests/test-lrucachedict.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
293 tests/test-lrucachedict.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
295 tests/test-minirst.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
294 tests/test-minirst.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
296 tests/test-parseindex*.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
295 tests/test-parseindex*.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
297 tests/test-propertycache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
296 tests/test-propertycache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
298 tests/test-revlog-ancestry.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
297 tests/test-revlog-ancestry.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
299 tests/test-status-inprocess.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
298 tests/test-status-inprocess.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
300 tests/test-trusted.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
299 tests/test-trusted.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
301 tests/test-ui-color.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
300 tests/test-ui-color.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
302 tests/test-ui-config.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
301 tests/test-ui-config.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
303 tests/test-ui-verbosity.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
302 tests/test-ui-verbosity.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
304 tests/test-walkrepo.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
303 tests/test-walkrepo.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
305 tests/test-wireproto.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
304 tests/test-wireproto.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
306 tests/tinyproxy.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
307
305
308 #endif
306 #endif
@@ -1,157 +1,157 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python
2
2
3 from __future__ import absolute_import
3 from __future__ import absolute_import, print_function
4
4
5 __doc__ = """Tiny HTTP Proxy.
5 __doc__ = """Tiny HTTP Proxy.
6
6
7 This module implements GET, HEAD, POST, PUT and DELETE methods
7 This module implements GET, HEAD, POST, PUT and DELETE methods
8 on BaseHTTPServer, and behaves as an HTTP proxy. The CONNECT
8 on BaseHTTPServer, and behaves as an HTTP proxy. The CONNECT
9 method is also implemented experimentally, but has not been
9 method is also implemented experimentally, but has not been
10 tested yet.
10 tested yet.
11
11
12 Any help will be greatly appreciated. SUZUKI Hisao
12 Any help will be greatly appreciated. SUZUKI Hisao
13 """
13 """
14
14
15 __version__ = "0.2.1"
15 __version__ = "0.2.1"
16
16
17 import BaseHTTPServer
17 import BaseHTTPServer
18 import os
18 import os
19 import select
19 import select
20 import socket
20 import socket
21 import SocketServer
21 import SocketServer
22 import urlparse
22 import urlparse
23
23
24 class ProxyHandler (BaseHTTPServer.BaseHTTPRequestHandler):
24 class ProxyHandler (BaseHTTPServer.BaseHTTPRequestHandler):
25 __base = BaseHTTPServer.BaseHTTPRequestHandler
25 __base = BaseHTTPServer.BaseHTTPRequestHandler
26 __base_handle = __base.handle
26 __base_handle = __base.handle
27
27
28 server_version = "TinyHTTPProxy/" + __version__
28 server_version = "TinyHTTPProxy/" + __version__
29 rbufsize = 0 # self.rfile Be unbuffered
29 rbufsize = 0 # self.rfile Be unbuffered
30
30
31 def handle(self):
31 def handle(self):
32 (ip, port) = self.client_address
32 (ip, port) = self.client_address
33 allowed = getattr(self, 'allowed_clients', None)
33 allowed = getattr(self, 'allowed_clients', None)
34 if allowed is not None and ip not in allowed:
34 if allowed is not None and ip not in allowed:
35 self.raw_requestline = self.rfile.readline()
35 self.raw_requestline = self.rfile.readline()
36 if self.parse_request():
36 if self.parse_request():
37 self.send_error(403)
37 self.send_error(403)
38 else:
38 else:
39 self.__base_handle()
39 self.__base_handle()
40
40
41 def log_request(self, code='-', size='-'):
41 def log_request(self, code='-', size='-'):
42 xheaders = [h for h in self.headers.items() if h[0].startswith('x-')]
42 xheaders = [h for h in self.headers.items() if h[0].startswith('x-')]
43 self.log_message('"%s" %s %s%s',
43 self.log_message('"%s" %s %s%s',
44 self.requestline, str(code), str(size),
44 self.requestline, str(code), str(size),
45 ''.join([' %s:%s' % h for h in sorted(xheaders)]))
45 ''.join([' %s:%s' % h for h in sorted(xheaders)]))
46
46
47 def _connect_to(self, netloc, soc):
47 def _connect_to(self, netloc, soc):
48 i = netloc.find(':')
48 i = netloc.find(':')
49 if i >= 0:
49 if i >= 0:
50 host_port = netloc[:i], int(netloc[i + 1:])
50 host_port = netloc[:i], int(netloc[i + 1:])
51 else:
51 else:
52 host_port = netloc, 80
52 host_port = netloc, 80
53 print "\t" "connect to %s:%d" % host_port
53 print("\t" "connect to %s:%d" % host_port)
54 try: soc.connect(host_port)
54 try: soc.connect(host_port)
55 except socket.error as arg:
55 except socket.error as arg:
56 try: msg = arg[1]
56 try: msg = arg[1]
57 except (IndexError, TypeError): msg = arg
57 except (IndexError, TypeError): msg = arg
58 self.send_error(404, msg)
58 self.send_error(404, msg)
59 return 0
59 return 0
60 return 1
60 return 1
61
61
62 def do_CONNECT(self):
62 def do_CONNECT(self):
63 soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
63 soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
64 try:
64 try:
65 if self._connect_to(self.path, soc):
65 if self._connect_to(self.path, soc):
66 self.log_request(200)
66 self.log_request(200)
67 self.wfile.write(self.protocol_version +
67 self.wfile.write(self.protocol_version +
68 " 200 Connection established\r\n")
68 " 200 Connection established\r\n")
69 self.wfile.write("Proxy-agent: %s\r\n" % self.version_string())
69 self.wfile.write("Proxy-agent: %s\r\n" % self.version_string())
70 self.wfile.write("\r\n")
70 self.wfile.write("\r\n")
71 self._read_write(soc, 300)
71 self._read_write(soc, 300)
72 finally:
72 finally:
73 print "\t" "bye"
73 print("\t" "bye")
74 soc.close()
74 soc.close()
75 self.connection.close()
75 self.connection.close()
76
76
77 def do_GET(self):
77 def do_GET(self):
78 (scm, netloc, path, params, query, fragment) = urlparse.urlparse(
78 (scm, netloc, path, params, query, fragment) = urlparse.urlparse(
79 self.path, 'http')
79 self.path, 'http')
80 if scm != 'http' or fragment or not netloc:
80 if scm != 'http' or fragment or not netloc:
81 self.send_error(400, "bad url %s" % self.path)
81 self.send_error(400, "bad url %s" % self.path)
82 return
82 return
83 soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
83 soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
84 try:
84 try:
85 if self._connect_to(netloc, soc):
85 if self._connect_to(netloc, soc):
86 self.log_request()
86 self.log_request()
87 soc.send("%s %s %s\r\n" % (
87 soc.send("%s %s %s\r\n" % (
88 self.command,
88 self.command,
89 urlparse.urlunparse(('', '', path, params, query, '')),
89 urlparse.urlunparse(('', '', path, params, query, '')),
90 self.request_version))
90 self.request_version))
91 self.headers['Connection'] = 'close'
91 self.headers['Connection'] = 'close'
92 del self.headers['Proxy-Connection']
92 del self.headers['Proxy-Connection']
93 for key_val in self.headers.items():
93 for key_val in self.headers.items():
94 soc.send("%s: %s\r\n" % key_val)
94 soc.send("%s: %s\r\n" % key_val)
95 soc.send("\r\n")
95 soc.send("\r\n")
96 self._read_write(soc)
96 self._read_write(soc)
97 finally:
97 finally:
98 print "\t" "bye"
98 print("\t" "bye")
99 soc.close()
99 soc.close()
100 self.connection.close()
100 self.connection.close()
101
101
102 def _read_write(self, soc, max_idling=20):
102 def _read_write(self, soc, max_idling=20):
103 iw = [self.connection, soc]
103 iw = [self.connection, soc]
104 ow = []
104 ow = []
105 count = 0
105 count = 0
106 while True:
106 while True:
107 count += 1
107 count += 1
108 (ins, _, exs) = select.select(iw, ow, iw, 3)
108 (ins, _, exs) = select.select(iw, ow, iw, 3)
109 if exs:
109 if exs:
110 break
110 break
111 if ins:
111 if ins:
112 for i in ins:
112 for i in ins:
113 if i is soc:
113 if i is soc:
114 out = self.connection
114 out = self.connection
115 else:
115 else:
116 out = soc
116 out = soc
117 try:
117 try:
118 data = i.recv(8192)
118 data = i.recv(8192)
119 except socket.error:
119 except socket.error:
120 break
120 break
121 if data:
121 if data:
122 out.send(data)
122 out.send(data)
123 count = 0
123 count = 0
124 else:
124 else:
125 print "\t" "idle", count
125 print("\t" "idle", count)
126 if count == max_idling:
126 if count == max_idling:
127 break
127 break
128
128
129 do_HEAD = do_GET
129 do_HEAD = do_GET
130 do_POST = do_GET
130 do_POST = do_GET
131 do_PUT = do_GET
131 do_PUT = do_GET
132 do_DELETE = do_GET
132 do_DELETE = do_GET
133
133
134 class ThreadingHTTPServer (SocketServer.ThreadingMixIn,
134 class ThreadingHTTPServer (SocketServer.ThreadingMixIn,
135 BaseHTTPServer.HTTPServer):
135 BaseHTTPServer.HTTPServer):
136 def __init__(self, *args, **kwargs):
136 def __init__(self, *args, **kwargs):
137 BaseHTTPServer.HTTPServer.__init__(self, *args, **kwargs)
137 BaseHTTPServer.HTTPServer.__init__(self, *args, **kwargs)
138 a = open("proxy.pid", "w")
138 a = open("proxy.pid", "w")
139 a.write(str(os.getpid()) + "\n")
139 a.write(str(os.getpid()) + "\n")
140 a.close()
140 a.close()
141
141
142 if __name__ == '__main__':
142 if __name__ == '__main__':
143 from sys import argv
143 from sys import argv
144 if argv[1:] and argv[1] in ('-h', '--help'):
144 if argv[1:] and argv[1] in ('-h', '--help'):
145 print argv[0], "[port [allowed_client_name ...]]"
145 print(argv[0], "[port [allowed_client_name ...]]")
146 else:
146 else:
147 if argv[2:]:
147 if argv[2:]:
148 allowed = []
148 allowed = []
149 for name in argv[2:]:
149 for name in argv[2:]:
150 client = socket.gethostbyname(name)
150 client = socket.gethostbyname(name)
151 allowed.append(client)
151 allowed.append(client)
152 print "Accept: %s (%s)" % (client, name)
152 print("Accept: %s (%s)" % (client, name))
153 ProxyHandler.allowed_clients = allowed
153 ProxyHandler.allowed_clients = allowed
154 del argv[2:]
154 del argv[2:]
155 else:
155 else:
156 print "Any clients will be served..."
156 print("Any clients will be served...")
157 BaseHTTPServer.test(ProxyHandler, ThreadingHTTPServer)
157 BaseHTTPServer.test(ProxyHandler, ThreadingHTTPServer)
General Comments 0
You need to be logged in to leave comments. Login now