Show More
@@ -2812,29 +2812,29 b' class url(object):' | |||||
2812 |
|
2812 | |||
2813 | Examples: |
|
2813 | Examples: | |
2814 |
|
2814 | |||
2815 |
>>> |
|
2815 | >>> bytes(url(b'http://user:pw@host:80/c:/bob?fo:oo#ba:ar')) | |
2816 | 'http://user:pw@host:80/c:/bob?fo:oo#ba:ar' |
|
2816 | 'http://user:pw@host:80/c:/bob?fo:oo#ba:ar' | |
2817 |
>>> |
|
2817 | >>> bytes(url(b'http://user:pw@host:80/?foo=bar&baz=42')) | |
2818 | 'http://user:pw@host:80/?foo=bar&baz=42' |
|
2818 | 'http://user:pw@host:80/?foo=bar&baz=42' | |
2819 |
>>> |
|
2819 | >>> bytes(url(b'http://user:pw@host:80/?foo=bar%3dbaz')) | |
2820 | 'http://user:pw@host:80/?foo=bar%3dbaz' |
|
2820 | 'http://user:pw@host:80/?foo=bar%3dbaz' | |
2821 |
>>> |
|
2821 | >>> bytes(url(b'ssh://user:pw@[::1]:2200//home/joe#')) | |
2822 | 'ssh://user:pw@[::1]:2200//home/joe#' |
|
2822 | 'ssh://user:pw@[::1]:2200//home/joe#' | |
2823 |
>>> |
|
2823 | >>> bytes(url(b'http://localhost:80//')) | |
2824 | 'http://localhost:80//' |
|
2824 | 'http://localhost:80//' | |
2825 |
>>> |
|
2825 | >>> bytes(url(b'http://localhost:80/')) | |
2826 | 'http://localhost:80/' |
|
2826 | 'http://localhost:80/' | |
2827 |
>>> |
|
2827 | >>> bytes(url(b'http://localhost:80')) | |
2828 | 'http://localhost:80/' |
|
2828 | 'http://localhost:80/' | |
2829 |
>>> |
|
2829 | >>> bytes(url(b'bundle:foo')) | |
2830 | 'bundle:foo' |
|
2830 | 'bundle:foo' | |
2831 |
>>> |
|
2831 | >>> bytes(url(b'bundle://../foo')) | |
2832 | 'bundle:../foo' |
|
2832 | 'bundle:../foo' | |
2833 |
>>> |
|
2833 | >>> bytes(url(b'path')) | |
2834 | 'path' |
|
2834 | 'path' | |
2835 |
>>> |
|
2835 | >>> bytes(url(b'file:///tmp/foo/bar')) | |
2836 | 'file:///tmp/foo/bar' |
|
2836 | 'file:///tmp/foo/bar' | |
2837 |
>>> |
|
2837 | >>> bytes(url(b'file:///c:/tmp/foo/bar')) | |
2838 | 'file:///c:/tmp/foo/bar' |
|
2838 | 'file:///c:/tmp/foo/bar' | |
2839 | >>> print url(br'bundle:foo\bar') |
|
2839 | >>> print url(br'bundle:foo\bar') | |
2840 | bundle:foo\bar |
|
2840 | bundle:foo\bar |
General Comments 0
You need to be logged in to leave comments.
Login now