equal
deleted
inserted
replaced
189 >>> u = url('http://foo/bar') |
189 >>> u = url('http://foo/bar') |
190 >>> u.path = 'bar' |
190 >>> u.path = 'bar' |
191 >>> str(u) |
191 >>> str(u) |
192 'http://foo/bar' |
192 'http://foo/bar' |
193 |
193 |
|
194 >>> u = url('file:/foo/bar/baz') |
|
195 >>> u |
|
196 <url scheme: 'file', path: '/foo/bar/baz'> |
|
197 >>> str(u) |
|
198 'file:///foo/bar/baz' |
|
199 |
194 >>> u = url('file:///foo/bar/baz') |
200 >>> u = url('file:///foo/bar/baz') |
195 >>> u |
201 >>> u |
196 <url scheme: 'file', path: '/foo/bar/baz'> |
202 <url scheme: 'file', path: '/foo/bar/baz'> |
197 >>> str(u) |
203 >>> str(u) |
198 'file:/foo/bar/baz' |
204 'file:///foo/bar/baz' |
|
205 |
|
206 >>> u = url('file:foo/bar/baz') |
|
207 >>> u |
|
208 <url scheme: 'file', path: 'foo/bar/baz'> |
|
209 >>> str(u) |
|
210 'file:foo/bar/baz' |
199 """ |
211 """ |
200 |
212 |
201 doctest.testmod(optionflags=doctest.NORMALIZE_WHITESPACE) |
213 doctest.testmod(optionflags=doctest.NORMALIZE_WHITESPACE) |
202 |
214 |
203 # Unicode (IDN) certname isn't supported |
215 # Unicode (IDN) certname isn't supported |