##// END OF EJS Templates
py3: make test-url use print_function
Pulkit Goyal -
r28677:2903558a default
parent child Browse files
Show More
@@ -1,302 +1,301 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
118
117
119 #if py3exe
118 #if py3exe
120 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py
119 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py
121 contrib/check-code.py: invalid syntax: (unicode error) 'unicodeescape' codec can't decode bytes in position *-*: malformed \N character escape (<unknown>, line *) (glob)
120 contrib/check-code.py: invalid syntax: (unicode error) 'unicodeescape' codec can't decode bytes in position *-*: malformed \N character escape (<unknown>, line *) (glob)
122 contrib/import-checker.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
121 contrib/import-checker.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
123 doc/hgmanpage.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
122 doc/hgmanpage.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
124 hgext/acl.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
123 hgext/acl.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
125 hgext/automv.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
124 hgext/automv.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
126 hgext/blackbox.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
125 hgext/blackbox.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
127 hgext/bugzilla.py: error importing module: <ImportError> No module named 'urlparse' (line *) (glob)
126 hgext/bugzilla.py: error importing module: <ImportError> No module named 'urlparse' (line *) (glob)
128 hgext/censor.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
127 hgext/censor.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
129 hgext/chgserver.py: error importing module: <ImportError> No module named 'SocketServer' (line *) (glob)
128 hgext/chgserver.py: error importing module: <ImportError> No module named 'SocketServer' (line *) (glob)
130 hgext/children.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
129 hgext/children.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
131 hgext/churn.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
130 hgext/churn.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
132 hgext/clonebundles.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
131 hgext/clonebundles.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
133 hgext/color.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
132 hgext/color.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
134 hgext/convert/bzr.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line *) (glob)
133 hgext/convert/bzr.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line *) (glob)
135 hgext/convert/common.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
134 hgext/convert/common.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
136 hgext/convert/convcmd.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
135 hgext/convert/convcmd.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
137 hgext/convert/cvs.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
136 hgext/convert/cvs.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
138 hgext/convert/cvsps.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
137 hgext/convert/cvsps.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
139 hgext/convert/darcs.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
138 hgext/convert/darcs.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
140 hgext/convert/filemap.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line *) (glob)
139 hgext/convert/filemap.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line *) (glob)
141 hgext/convert/git.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
140 hgext/convert/git.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
142 hgext/convert/gnuarch.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
141 hgext/convert/gnuarch.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
143 hgext/convert/hg.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
142 hgext/convert/hg.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
144 hgext/convert/monotone.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
143 hgext/convert/monotone.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
145 hgext/convert/p*.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
144 hgext/convert/p*.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
146 hgext/convert/subversion.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
145 hgext/convert/subversion.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
147 hgext/convert/transport.py: error importing module: <ImportError> No module named 'svn.client' (line *) (glob)
146 hgext/convert/transport.py: error importing module: <ImportError> No module named 'svn.client' (line *) (glob)
148 hgext/eol.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
147 hgext/eol.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
149 hgext/extdiff.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
148 hgext/extdiff.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
150 hgext/factotum.py: error importing: <ImportError> No module named 'cStringIO' (error at url.py:*) (glob)
149 hgext/factotum.py: error importing: <ImportError> No module named 'cStringIO' (error at url.py:*) (glob)
151 hgext/fetch.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
150 hgext/fetch.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
152 hgext/fsmonitor/state.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
151 hgext/fsmonitor/state.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
153 hgext/fsmonitor/watchmanclient.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
152 hgext/fsmonitor/watchmanclient.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
154 hgext/gpg.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
153 hgext/gpg.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
155 hgext/graphlog.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
154 hgext/graphlog.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
156 hgext/hgcia.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
155 hgext/hgcia.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
157 hgext/hgk.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
156 hgext/hgk.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
158 hgext/highlight/highlight.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
157 hgext/highlight/highlight.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
159 hgext/histedit.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
158 hgext/histedit.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
160 hgext/keyword.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
159 hgext/keyword.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
161 hgext/largefiles/basestore.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
160 hgext/largefiles/basestore.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
162 hgext/largefiles/lfcommands.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
161 hgext/largefiles/lfcommands.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
163 hgext/largefiles/lfutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
162 hgext/largefiles/lfutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
164 hgext/largefiles/localstore.py: error importing module: <ImportError> No module named 'lfutil' (line *) (glob)
163 hgext/largefiles/localstore.py: error importing module: <ImportError> No module named 'lfutil' (line *) (glob)
165 hgext/largefiles/overrides.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
164 hgext/largefiles/overrides.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
166 hgext/largefiles/proto.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
165 hgext/largefiles/proto.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
167 hgext/largefiles/remotestore.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
166 hgext/largefiles/remotestore.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
168 hgext/largefiles/reposetup.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
167 hgext/largefiles/reposetup.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
169 hgext/largefiles/uisetup.py: error importing module: <SyntaxError> invalid syntax (archival.py, line *) (line *) (glob)
168 hgext/largefiles/uisetup.py: error importing module: <SyntaxError> invalid syntax (archival.py, line *) (line *) (glob)
170 hgext/largefiles/wirestore.py: error importing module: <ImportError> No module named 'lfutil' (line *) (glob)
169 hgext/largefiles/wirestore.py: error importing module: <ImportError> No module named 'lfutil' (line *) (glob)
171 hgext/mq.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
170 hgext/mq.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
172 hgext/notify.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
171 hgext/notify.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
173 hgext/pager.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
172 hgext/pager.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
174 hgext/patchbomb.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
173 hgext/patchbomb.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
175 hgext/purge.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
174 hgext/purge.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
176 hgext/rebase.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
175 hgext/rebase.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
177 hgext/record.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
176 hgext/record.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
178 hgext/relink.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
177 hgext/relink.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
179 hgext/schemes.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
178 hgext/schemes.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
180 hgext/share.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
179 hgext/share.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
181 hgext/shelve.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
180 hgext/shelve.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
182 hgext/strip.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
181 hgext/strip.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
183 hgext/transplant.py: error importing: <SyntaxError> invalid syntax (bundle*.py, line *) (error at bundlerepo.py:*) (glob)
182 hgext/transplant.py: error importing: <SyntaxError> invalid syntax (bundle*.py, line *) (error at bundlerepo.py:*) (glob)
184 hgext/win*text.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
183 hgext/win*text.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
185 mercurial/archival.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
184 mercurial/archival.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
186 mercurial/bookmarks.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
185 mercurial/bookmarks.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
187 mercurial/branchmap.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:*) (glob)
186 mercurial/branchmap.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:*) (glob)
188 mercurial/bundle*.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
187 mercurial/bundle*.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
189 mercurial/bundlerepo.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
188 mercurial/bundlerepo.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
190 mercurial/byterange.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
189 mercurial/byterange.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
191 mercurial/changegroup.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:*) (glob)
190 mercurial/changegroup.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:*) (glob)
192 mercurial/changelog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
191 mercurial/changelog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
193 mercurial/cmdutil.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
192 mercurial/cmdutil.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
194 mercurial/commands.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
193 mercurial/commands.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
195 mercurial/commandserver.py: error importing module: <ImportError> No module named 'SocketServer' (line *) (glob)
194 mercurial/commandserver.py: error importing module: <ImportError> No module named 'SocketServer' (line *) (glob)
196 mercurial/config.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
195 mercurial/config.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
197 mercurial/context.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
196 mercurial/context.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
198 mercurial/copies.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
197 mercurial/copies.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
199 mercurial/crecord.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
198 mercurial/crecord.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
200 mercurial/destutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
199 mercurial/destutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
201 mercurial/dirstate.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
200 mercurial/dirstate.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
202 mercurial/discovery.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
201 mercurial/discovery.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
203 mercurial/dispatch.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
202 mercurial/dispatch.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
204 mercurial/exchange.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
203 mercurial/exchange.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
205 mercurial/extensions.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
204 mercurial/extensions.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
206 mercurial/filelog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
205 mercurial/filelog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
207 mercurial/filemerge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
206 mercurial/filemerge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
208 mercurial/fileset.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
207 mercurial/fileset.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
209 mercurial/formatter.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
208 mercurial/formatter.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
210 mercurial/graphmod.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
209 mercurial/graphmod.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
211 mercurial/help.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
210 mercurial/help.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
212 mercurial/hg.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
211 mercurial/hg.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
213 mercurial/hgweb/common.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line *) (glob)
212 mercurial/hgweb/common.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line *) (glob)
214 mercurial/hgweb/hgweb_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
213 mercurial/hgweb/hgweb_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
215 mercurial/hgweb/hgwebdir_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
214 mercurial/hgweb/hgwebdir_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
216 mercurial/hgweb/protocol.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
215 mercurial/hgweb/protocol.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
217 mercurial/hgweb/request.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
216 mercurial/hgweb/request.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
218 mercurial/hgweb/server.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line *) (glob)
217 mercurial/hgweb/server.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line *) (glob)
219 mercurial/hgweb/webcommands.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
218 mercurial/hgweb/webcommands.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
220 mercurial/hgweb/webutil.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
219 mercurial/hgweb/webutil.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
221 mercurial/hgweb/wsgicgi.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
220 mercurial/hgweb/wsgicgi.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
222 mercurial/hook.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
221 mercurial/hook.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
223 mercurial/httpclient/_readers.py: error importing module: <ImportError> No module named 'httplib' (line *) (glob)
222 mercurial/httpclient/_readers.py: error importing module: <ImportError> No module named 'httplib' (line *) (glob)
224 mercurial/httpconnection.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
223 mercurial/httpconnection.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
225 mercurial/httppeer.py: error importing module: <ImportError> No module named 'httplib' (line *) (glob)
224 mercurial/httppeer.py: error importing module: <ImportError> No module named 'httplib' (line *) (glob)
226 mercurial/keepalive.py: error importing module: <ImportError> No module named 'httplib' (line *) (glob)
225 mercurial/keepalive.py: error importing module: <ImportError> No module named 'httplib' (line *) (glob)
227 mercurial/localrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
226 mercurial/localrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
228 mercurial/lock.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
227 mercurial/lock.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
229 mercurial/mail.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
228 mercurial/mail.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
230 mercurial/manifest.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
229 mercurial/manifest.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
231 mercurial/match.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
230 mercurial/match.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
232 mercurial/mdiff.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
231 mercurial/mdiff.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
233 mercurial/merge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
232 mercurial/merge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
234 mercurial/minirst.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
233 mercurial/minirst.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
235 mercurial/namespaces.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:*) (glob)
234 mercurial/namespaces.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:*) (glob)
236 mercurial/obsolete.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
235 mercurial/obsolete.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
237 mercurial/patch.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
236 mercurial/patch.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
238 mercurial/pathutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
237 mercurial/pathutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
239 mercurial/peer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
238 mercurial/peer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
240 mercurial/pure/mpatch.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
239 mercurial/pure/mpatch.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
241 mercurial/pure/parsers.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
240 mercurial/pure/parsers.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
242 mercurial/pushkey.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
241 mercurial/pushkey.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
243 mercurial/pvec.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
242 mercurial/pvec.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
244 mercurial/registrar.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
243 mercurial/registrar.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
245 mercurial/repair.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
244 mercurial/repair.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
246 mercurial/repoview.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
245 mercurial/repoview.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
247 mercurial/revlog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
246 mercurial/revlog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
248 mercurial/revset.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
247 mercurial/revset.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
249 mercurial/scmutil.py: error importing module: <ImportError> No module named 'Queue' (line *) (glob)
248 mercurial/scmutil.py: error importing module: <ImportError> No module named 'Queue' (line *) (glob)
250 mercurial/scmwindows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob)
249 mercurial/scmwindows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob)
251 mercurial/similar.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
250 mercurial/similar.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
252 mercurial/simplemerge.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
251 mercurial/simplemerge.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
253 mercurial/sshpeer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
252 mercurial/sshpeer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
254 mercurial/sshserver.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
253 mercurial/sshserver.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
255 mercurial/sslutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
254 mercurial/sslutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
256 mercurial/statichttprepo.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
255 mercurial/statichttprepo.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
257 mercurial/store.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
256 mercurial/store.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
258 mercurial/streamclone.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:*) (glob)
257 mercurial/streamclone.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:*) (glob)
259 mercurial/subrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
258 mercurial/subrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
260 mercurial/tagmerge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
259 mercurial/tagmerge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
261 mercurial/tags.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
260 mercurial/tags.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
262 mercurial/templatefilters.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:*) (glob)
261 mercurial/templatefilters.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:*) (glob)
263 mercurial/templatekw.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:*) (glob)
262 mercurial/templatekw.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:*) (glob)
264 mercurial/templater.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
263 mercurial/templater.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
265 mercurial/transaction.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
264 mercurial/transaction.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
266 mercurial/ui.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
265 mercurial/ui.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
267 mercurial/unionrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
266 mercurial/unionrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
268 mercurial/url.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
267 mercurial/url.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
269 mercurial/util.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
268 mercurial/util.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
270 mercurial/verify.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
269 mercurial/verify.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
271 mercurial/win*.py: error importing module: <ImportError> No module named 'msvcrt' (line *) (glob)
270 mercurial/win*.py: error importing module: <ImportError> No module named 'msvcrt' (line *) (glob)
272 mercurial/windows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob)
271 mercurial/windows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob)
273 mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
272 mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
274 tests/filterpyflakes.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
273 tests/filterpyflakes.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
275 tests/generate-working-copy-states.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
274 tests/generate-working-copy-states.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
276 tests/get-with-headers.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
275 tests/get-with-headers.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
277 tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
276 tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
278 tests/seq.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
277 tests/seq.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
279 tests/silenttestrunner.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
278 tests/silenttestrunner.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
280 tests/test-ancestor.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
279 tests/test-ancestor.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
281 tests/test-batching.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
280 tests/test-batching.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
282 tests/test-bdiff.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
281 tests/test-bdiff.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
283 tests/test-context.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
282 tests/test-context.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
284 tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
283 tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
285 tests/test-duplicateoptions.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
284 tests/test-duplicateoptions.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
286 tests/test-filecache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
285 tests/test-filecache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
287 tests/test-filelog.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
286 tests/test-filelog.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
288 tests/test-hg-parseurl.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
287 tests/test-hg-parseurl.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
289 tests/test-hgweb-auth.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
288 tests/test-hgweb-auth.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
290 tests/test-hybridencode.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
289 tests/test-hybridencode.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
291 tests/test-lrucachedict.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
290 tests/test-lrucachedict.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
292 tests/test-minirst.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
291 tests/test-minirst.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
293 tests/test-parseindex*.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
292 tests/test-parseindex*.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
294 tests/test-propertycache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
293 tests/test-propertycache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
295 tests/test-revlog-ancestry.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
294 tests/test-revlog-ancestry.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
296 tests/test-status-inprocess.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
295 tests/test-status-inprocess.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
297 tests/test-trusted.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
296 tests/test-trusted.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
298 tests/test-ui-color.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
297 tests/test-ui-color.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
299 tests/test-ui-config.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
298 tests/test-ui-config.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
300 tests/test-ui-verbosity.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
299 tests/test-ui-verbosity.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
301
300
302 #endif
301 #endif
@@ -1,246 +1,247 b''
1 from __future__ import print_function
1 import os
2 import os
2
3
3 def check(a, b):
4 def check(a, b):
4 if a != b:
5 if a != b:
5 print (a, b)
6 print((a, b))
6
7
7 def cert(cn):
8 def cert(cn):
8 return {'subject': ((('commonName', cn),),)}
9 return {'subject': ((('commonName', cn),),)}
9
10
10 from mercurial.sslutil import _verifycert
11 from mercurial.sslutil import _verifycert
11
12
12 # Test non-wildcard certificates
13 # Test non-wildcard certificates
13 check(_verifycert(cert('example.com'), 'example.com'),
14 check(_verifycert(cert('example.com'), 'example.com'),
14 None)
15 None)
15 check(_verifycert(cert('example.com'), 'www.example.com'),
16 check(_verifycert(cert('example.com'), 'www.example.com'),
16 'certificate is for example.com')
17 'certificate is for example.com')
17 check(_verifycert(cert('www.example.com'), 'example.com'),
18 check(_verifycert(cert('www.example.com'), 'example.com'),
18 'certificate is for www.example.com')
19 'certificate is for www.example.com')
19
20
20 # Test wildcard certificates
21 # Test wildcard certificates
21 check(_verifycert(cert('*.example.com'), 'www.example.com'),
22 check(_verifycert(cert('*.example.com'), 'www.example.com'),
22 None)
23 None)
23 check(_verifycert(cert('*.example.com'), 'example.com'),
24 check(_verifycert(cert('*.example.com'), 'example.com'),
24 'certificate is for *.example.com')
25 'certificate is for *.example.com')
25 check(_verifycert(cert('*.example.com'), 'w.w.example.com'),
26 check(_verifycert(cert('*.example.com'), 'w.w.example.com'),
26 'certificate is for *.example.com')
27 'certificate is for *.example.com')
27
28
28 # Test subjectAltName
29 # Test subjectAltName
29 san_cert = {'subject': ((('commonName', 'example.com'),),),
30 san_cert = {'subject': ((('commonName', 'example.com'),),),
30 'subjectAltName': (('DNS', '*.example.net'),
31 'subjectAltName': (('DNS', '*.example.net'),
31 ('DNS', 'example.net'))}
32 ('DNS', 'example.net'))}
32 check(_verifycert(san_cert, 'example.net'),
33 check(_verifycert(san_cert, 'example.net'),
33 None)
34 None)
34 check(_verifycert(san_cert, 'foo.example.net'),
35 check(_verifycert(san_cert, 'foo.example.net'),
35 None)
36 None)
36 # no fallback to subject commonName when subjectAltName has DNS
37 # no fallback to subject commonName when subjectAltName has DNS
37 check(_verifycert(san_cert, 'example.com'),
38 check(_verifycert(san_cert, 'example.com'),
38 'certificate is for *.example.net, example.net')
39 'certificate is for *.example.net, example.net')
39 # fallback to subject commonName when no DNS in subjectAltName
40 # fallback to subject commonName when no DNS in subjectAltName
40 san_cert = {'subject': ((('commonName', 'example.com'),),),
41 san_cert = {'subject': ((('commonName', 'example.com'),),),
41 'subjectAltName': (('IP Address', '8.8.8.8'),)}
42 'subjectAltName': (('IP Address', '8.8.8.8'),)}
42 check(_verifycert(san_cert, 'example.com'), None)
43 check(_verifycert(san_cert, 'example.com'), None)
43
44
44 # Avoid some pitfalls
45 # Avoid some pitfalls
45 check(_verifycert(cert('*.foo'), 'foo'),
46 check(_verifycert(cert('*.foo'), 'foo'),
46 'certificate is for *.foo')
47 'certificate is for *.foo')
47 check(_verifycert(cert('*o'), 'foo'),
48 check(_verifycert(cert('*o'), 'foo'),
48 'certificate is for *o')
49 'certificate is for *o')
49
50
50 check(_verifycert({'subject': ()},
51 check(_verifycert({'subject': ()},
51 'example.com'),
52 'example.com'),
52 'no commonName or subjectAltName found in certificate')
53 'no commonName or subjectAltName found in certificate')
53 check(_verifycert(None, 'example.com'),
54 check(_verifycert(None, 'example.com'),
54 'no certificate received')
55 'no certificate received')
55
56
56 # Unicode (IDN) certname isn't supported
57 # Unicode (IDN) certname isn't supported
57 check(_verifycert(cert(u'\u4f8b.jp'), 'example.jp'),
58 check(_verifycert(cert(u'\u4f8b.jp'), 'example.jp'),
58 'IDN in certificate not supported')
59 'IDN in certificate not supported')
59
60
60 import doctest
61 import doctest
61
62
62 def test_url():
63 def test_url():
63 """
64 """
64 >>> from mercurial.util import url
65 >>> from mercurial.util import url
65
66
66 This tests for edge cases in url.URL's parsing algorithm. Most of
67 This tests for edge cases in url.URL's parsing algorithm. Most of
67 these aren't useful for documentation purposes, so they aren't
68 these aren't useful for documentation purposes, so they aren't
68 part of the class's doc tests.
69 part of the class's doc tests.
69
70
70 Query strings and fragments:
71 Query strings and fragments:
71
72
72 >>> url('http://host/a?b#c')
73 >>> url('http://host/a?b#c')
73 <url scheme: 'http', host: 'host', path: 'a', query: 'b', fragment: 'c'>
74 <url scheme: 'http', host: 'host', path: 'a', query: 'b', fragment: 'c'>
74 >>> url('http://host/a?')
75 >>> url('http://host/a?')
75 <url scheme: 'http', host: 'host', path: 'a'>
76 <url scheme: 'http', host: 'host', path: 'a'>
76 >>> url('http://host/a#b#c')
77 >>> url('http://host/a#b#c')
77 <url scheme: 'http', host: 'host', path: 'a', fragment: 'b#c'>
78 <url scheme: 'http', host: 'host', path: 'a', fragment: 'b#c'>
78 >>> url('http://host/a#b?c')
79 >>> url('http://host/a#b?c')
79 <url scheme: 'http', host: 'host', path: 'a', fragment: 'b?c'>
80 <url scheme: 'http', host: 'host', path: 'a', fragment: 'b?c'>
80 >>> url('http://host/?a#b')
81 >>> url('http://host/?a#b')
81 <url scheme: 'http', host: 'host', path: '', query: 'a', fragment: 'b'>
82 <url scheme: 'http', host: 'host', path: '', query: 'a', fragment: 'b'>
82 >>> url('http://host/?a#b', parsequery=False)
83 >>> url('http://host/?a#b', parsequery=False)
83 <url scheme: 'http', host: 'host', path: '?a', fragment: 'b'>
84 <url scheme: 'http', host: 'host', path: '?a', fragment: 'b'>
84 >>> url('http://host/?a#b', parsefragment=False)
85 >>> url('http://host/?a#b', parsefragment=False)
85 <url scheme: 'http', host: 'host', path: '', query: 'a#b'>
86 <url scheme: 'http', host: 'host', path: '', query: 'a#b'>
86 >>> url('http://host/?a#b', parsequery=False, parsefragment=False)
87 >>> url('http://host/?a#b', parsequery=False, parsefragment=False)
87 <url scheme: 'http', host: 'host', path: '?a#b'>
88 <url scheme: 'http', host: 'host', path: '?a#b'>
88
89
89 IPv6 addresses:
90 IPv6 addresses:
90
91
91 >>> url('ldap://[2001:db8::7]/c=GB?objectClass?one')
92 >>> url('ldap://[2001:db8::7]/c=GB?objectClass?one')
92 <url scheme: 'ldap', host: '[2001:db8::7]', path: 'c=GB',
93 <url scheme: 'ldap', host: '[2001:db8::7]', path: 'c=GB',
93 query: 'objectClass?one'>
94 query: 'objectClass?one'>
94 >>> url('ldap://joe:xxx@[2001:db8::7]:80/c=GB?objectClass?one')
95 >>> url('ldap://joe:xxx@[2001:db8::7]:80/c=GB?objectClass?one')
95 <url scheme: 'ldap', user: 'joe', passwd: 'xxx', host: '[2001:db8::7]',
96 <url scheme: 'ldap', user: 'joe', passwd: 'xxx', host: '[2001:db8::7]',
96 port: '80', path: 'c=GB', query: 'objectClass?one'>
97 port: '80', path: 'c=GB', query: 'objectClass?one'>
97
98
98 Missing scheme, host, etc.:
99 Missing scheme, host, etc.:
99
100
100 >>> url('://192.0.2.16:80/')
101 >>> url('://192.0.2.16:80/')
101 <url path: '://192.0.2.16:80/'>
102 <url path: '://192.0.2.16:80/'>
102 >>> url('https://mercurial-scm.org')
103 >>> url('https://mercurial-scm.org')
103 <url scheme: 'https', host: 'mercurial-scm.org'>
104 <url scheme: 'https', host: 'mercurial-scm.org'>
104 >>> url('/foo')
105 >>> url('/foo')
105 <url path: '/foo'>
106 <url path: '/foo'>
106 >>> url('bundle:/foo')
107 >>> url('bundle:/foo')
107 <url scheme: 'bundle', path: '/foo'>
108 <url scheme: 'bundle', path: '/foo'>
108 >>> url('a?b#c')
109 >>> url('a?b#c')
109 <url path: 'a?b', fragment: 'c'>
110 <url path: 'a?b', fragment: 'c'>
110 >>> url('http://x.com?arg=/foo')
111 >>> url('http://x.com?arg=/foo')
111 <url scheme: 'http', host: 'x.com', query: 'arg=/foo'>
112 <url scheme: 'http', host: 'x.com', query: 'arg=/foo'>
112 >>> url('http://joe:xxx@/foo')
113 >>> url('http://joe:xxx@/foo')
113 <url scheme: 'http', user: 'joe', passwd: 'xxx', path: 'foo'>
114 <url scheme: 'http', user: 'joe', passwd: 'xxx', path: 'foo'>
114
115
115 Just a scheme and a path:
116 Just a scheme and a path:
116
117
117 >>> url('mailto:John.Doe@example.com')
118 >>> url('mailto:John.Doe@example.com')
118 <url scheme: 'mailto', path: 'John.Doe@example.com'>
119 <url scheme: 'mailto', path: 'John.Doe@example.com'>
119 >>> url('a:b:c:d')
120 >>> url('a:b:c:d')
120 <url path: 'a:b:c:d'>
121 <url path: 'a:b:c:d'>
121 >>> url('aa:bb:cc:dd')
122 >>> url('aa:bb:cc:dd')
122 <url scheme: 'aa', path: 'bb:cc:dd'>
123 <url scheme: 'aa', path: 'bb:cc:dd'>
123
124
124 SSH examples:
125 SSH examples:
125
126
126 >>> url('ssh://joe@host//home/joe')
127 >>> url('ssh://joe@host//home/joe')
127 <url scheme: 'ssh', user: 'joe', host: 'host', path: '/home/joe'>
128 <url scheme: 'ssh', user: 'joe', host: 'host', path: '/home/joe'>
128 >>> url('ssh://joe:xxx@host/src')
129 >>> url('ssh://joe:xxx@host/src')
129 <url scheme: 'ssh', user: 'joe', passwd: 'xxx', host: 'host', path: 'src'>
130 <url scheme: 'ssh', user: 'joe', passwd: 'xxx', host: 'host', path: 'src'>
130 >>> url('ssh://joe:xxx@host')
131 >>> url('ssh://joe:xxx@host')
131 <url scheme: 'ssh', user: 'joe', passwd: 'xxx', host: 'host'>
132 <url scheme: 'ssh', user: 'joe', passwd: 'xxx', host: 'host'>
132 >>> url('ssh://joe@host')
133 >>> url('ssh://joe@host')
133 <url scheme: 'ssh', user: 'joe', host: 'host'>
134 <url scheme: 'ssh', user: 'joe', host: 'host'>
134 >>> url('ssh://host')
135 >>> url('ssh://host')
135 <url scheme: 'ssh', host: 'host'>
136 <url scheme: 'ssh', host: 'host'>
136 >>> url('ssh://')
137 >>> url('ssh://')
137 <url scheme: 'ssh'>
138 <url scheme: 'ssh'>
138 >>> url('ssh:')
139 >>> url('ssh:')
139 <url scheme: 'ssh'>
140 <url scheme: 'ssh'>
140
141
141 Non-numeric port:
142 Non-numeric port:
142
143
143 >>> url('http://example.com:dd')
144 >>> url('http://example.com:dd')
144 <url scheme: 'http', host: 'example.com', port: 'dd'>
145 <url scheme: 'http', host: 'example.com', port: 'dd'>
145 >>> url('ssh://joe:xxx@host:ssh/foo')
146 >>> url('ssh://joe:xxx@host:ssh/foo')
146 <url scheme: 'ssh', user: 'joe', passwd: 'xxx', host: 'host', port: 'ssh',
147 <url scheme: 'ssh', user: 'joe', passwd: 'xxx', host: 'host', port: 'ssh',
147 path: 'foo'>
148 path: 'foo'>
148
149
149 Bad authentication credentials:
150 Bad authentication credentials:
150
151
151 >>> url('http://joe@joeville:123@4:@host/a?b#c')
152 >>> url('http://joe@joeville:123@4:@host/a?b#c')
152 <url scheme: 'http', user: 'joe@joeville', passwd: '123@4:',
153 <url scheme: 'http', user: 'joe@joeville', passwd: '123@4:',
153 host: 'host', path: 'a', query: 'b', fragment: 'c'>
154 host: 'host', path: 'a', query: 'b', fragment: 'c'>
154 >>> url('http://!*#?/@!*#?/:@host/a?b#c')
155 >>> url('http://!*#?/@!*#?/:@host/a?b#c')
155 <url scheme: 'http', host: '!*', fragment: '?/@!*#?/:@host/a?b#c'>
156 <url scheme: 'http', host: '!*', fragment: '?/@!*#?/:@host/a?b#c'>
156 >>> url('http://!*#?@!*#?:@host/a?b#c')
157 >>> url('http://!*#?@!*#?:@host/a?b#c')
157 <url scheme: 'http', host: '!*', fragment: '?@!*#?:@host/a?b#c'>
158 <url scheme: 'http', host: '!*', fragment: '?@!*#?:@host/a?b#c'>
158 >>> url('http://!*@:!*@@host/a?b#c')
159 >>> url('http://!*@:!*@@host/a?b#c')
159 <url scheme: 'http', user: '!*@', passwd: '!*@', host: 'host',
160 <url scheme: 'http', user: '!*@', passwd: '!*@', host: 'host',
160 path: 'a', query: 'b', fragment: 'c'>
161 path: 'a', query: 'b', fragment: 'c'>
161
162
162 File paths:
163 File paths:
163
164
164 >>> url('a/b/c/d.g.f')
165 >>> url('a/b/c/d.g.f')
165 <url path: 'a/b/c/d.g.f'>
166 <url path: 'a/b/c/d.g.f'>
166 >>> url('/x///z/y/')
167 >>> url('/x///z/y/')
167 <url path: '/x///z/y/'>
168 <url path: '/x///z/y/'>
168 >>> url('/foo:bar')
169 >>> url('/foo:bar')
169 <url path: '/foo:bar'>
170 <url path: '/foo:bar'>
170 >>> url('\\\\foo:bar')
171 >>> url('\\\\foo:bar')
171 <url path: '\\\\foo:bar'>
172 <url path: '\\\\foo:bar'>
172 >>> url('./foo:bar')
173 >>> url('./foo:bar')
173 <url path: './foo:bar'>
174 <url path: './foo:bar'>
174
175
175 Non-localhost file URL:
176 Non-localhost file URL:
176
177
177 >>> u = url('file://mercurial-scm.org/foo')
178 >>> u = url('file://mercurial-scm.org/foo')
178 Traceback (most recent call last):
179 Traceback (most recent call last):
179 File "<stdin>", line 1, in ?
180 File "<stdin>", line 1, in ?
180 Abort: file:// URLs can only refer to localhost
181 Abort: file:// URLs can only refer to localhost
181
182
182 Empty URL:
183 Empty URL:
183
184
184 >>> u = url('')
185 >>> u = url('')
185 >>> u
186 >>> u
186 <url path: ''>
187 <url path: ''>
187 >>> str(u)
188 >>> str(u)
188 ''
189 ''
189
190
190 Empty path with query string:
191 Empty path with query string:
191
192
192 >>> str(url('http://foo/?bar'))
193 >>> str(url('http://foo/?bar'))
193 'http://foo/?bar'
194 'http://foo/?bar'
194
195
195 Invalid path:
196 Invalid path:
196
197
197 >>> u = url('http://foo/bar')
198 >>> u = url('http://foo/bar')
198 >>> u.path = 'bar'
199 >>> u.path = 'bar'
199 >>> str(u)
200 >>> str(u)
200 'http://foo/bar'
201 'http://foo/bar'
201
202
202 >>> u = url('file:/foo/bar/baz')
203 >>> u = url('file:/foo/bar/baz')
203 >>> u
204 >>> u
204 <url scheme: 'file', path: '/foo/bar/baz'>
205 <url scheme: 'file', path: '/foo/bar/baz'>
205 >>> str(u)
206 >>> str(u)
206 'file:///foo/bar/baz'
207 'file:///foo/bar/baz'
207 >>> u.localpath()
208 >>> u.localpath()
208 '/foo/bar/baz'
209 '/foo/bar/baz'
209
210
210 >>> u = url('file:///foo/bar/baz')
211 >>> u = url('file:///foo/bar/baz')
211 >>> u
212 >>> u
212 <url scheme: 'file', path: '/foo/bar/baz'>
213 <url scheme: 'file', path: '/foo/bar/baz'>
213 >>> str(u)
214 >>> str(u)
214 'file:///foo/bar/baz'
215 'file:///foo/bar/baz'
215 >>> u.localpath()
216 >>> u.localpath()
216 '/foo/bar/baz'
217 '/foo/bar/baz'
217
218
218 >>> u = url('file:///f:oo/bar/baz')
219 >>> u = url('file:///f:oo/bar/baz')
219 >>> u
220 >>> u
220 <url scheme: 'file', path: 'f:oo/bar/baz'>
221 <url scheme: 'file', path: 'f:oo/bar/baz'>
221 >>> str(u)
222 >>> str(u)
222 'file:///f:oo/bar/baz'
223 'file:///f:oo/bar/baz'
223 >>> u.localpath()
224 >>> u.localpath()
224 'f:oo/bar/baz'
225 'f:oo/bar/baz'
225
226
226 >>> u = url('file://localhost/f:oo/bar/baz')
227 >>> u = url('file://localhost/f:oo/bar/baz')
227 >>> u
228 >>> u
228 <url scheme: 'file', host: 'localhost', path: 'f:oo/bar/baz'>
229 <url scheme: 'file', host: 'localhost', path: 'f:oo/bar/baz'>
229 >>> str(u)
230 >>> str(u)
230 'file://localhost/f:oo/bar/baz'
231 'file://localhost/f:oo/bar/baz'
231 >>> u.localpath()
232 >>> u.localpath()
232 'f:oo/bar/baz'
233 'f:oo/bar/baz'
233
234
234 >>> u = url('file:foo/bar/baz')
235 >>> u = url('file:foo/bar/baz')
235 >>> u
236 >>> u
236 <url scheme: 'file', path: 'foo/bar/baz'>
237 <url scheme: 'file', path: 'foo/bar/baz'>
237 >>> str(u)
238 >>> str(u)
238 'file:foo/bar/baz'
239 'file:foo/bar/baz'
239 >>> u.localpath()
240 >>> u.localpath()
240 'foo/bar/baz'
241 'foo/bar/baz'
241 """
242 """
242
243
243 if 'TERM' in os.environ:
244 if 'TERM' in os.environ:
244 del os.environ['TERM']
245 del os.environ['TERM']
245
246
246 doctest.testmod(optionflags=doctest.NORMALIZE_WHITESPACE)
247 doctest.testmod(optionflags=doctest.NORMALIZE_WHITESPACE)
General Comments 0
You need to be logged in to leave comments. Login now