mirror of https://github.com/mahmoud/boltons.git
userinfo in the url structure docstring
This commit is contained in:
parent
0f8666602c
commit
b58ef52a3a
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
""":mod:`urlutils` is a module dedicated to one of our most versatile,
|
""":mod:`urlutils` is a module dedicated to one of software's most
|
||||||
well-aged, and beloved data structures: the URL, also known as the
|
versatile, well-aged, and beloved data structures: the URL, also known
|
||||||
`Uniform Resource Locator`_.
|
as the `Uniform Resource Locator`_.
|
||||||
|
|
||||||
Among other things, this module is a full reimplementation of URLs,
|
Among other things, this module is a full reimplementation of URLs,
|
||||||
without any reliance on the :mod:`urlparse` or :mod:`urllib` standard
|
without any reliance on the :mod:`urlparse` or :mod:`urllib` standard
|
||||||
|
@ -413,10 +413,10 @@ class URL(object):
|
||||||
Each is exposed as an attribute on the URL object. RFC 3986 offers
|
Each is exposed as an attribute on the URL object. RFC 3986 offers
|
||||||
this brief structural summary of the main URL components::
|
this brief structural summary of the main URL components::
|
||||||
|
|
||||||
foo://example.com:8042/over/there?name=ferret#nose
|
foo://user:pass@example.com:8042/over/there?name=ferret#nose
|
||||||
\_/ \_________/ \__/\_________/ \_________/ \__/
|
\_/ \_______/ \_________/ \__/\_________/ \_________/ \__/
|
||||||
| | | | | |
|
| | | | | | |
|
||||||
scheme host port path query fragment
|
scheme userinfo host port path query fragment
|
||||||
|
|
||||||
And here's how that example can be manipulated with the URL type:
|
And here's how that example can be manipulated with the URL type:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue