@@ -183,7 +183,7 @@ def __nonzero__(self):
183
183
_SCHEMELESS_PATH_DELIMS = _ALL_DELIMS - _SCHEMELESS_PATH_SAFE
184
184
_FRAGMENT_SAFE = _UNRESERVED_CHARS | _PATH_SAFE | set (u"/?" )
185
185
_FRAGMENT_DELIMS = _ALL_DELIMS - _FRAGMENT_SAFE
186
- _QUERY_VALUE_SAFE = _UNRESERVED_CHARS | _FRAGMENT_SAFE - set (u"&+ " )
186
+ _QUERY_VALUE_SAFE = _UNRESERVED_CHARS | _FRAGMENT_SAFE - set (u"&" )
187
187
_QUERY_VALUE_DELIMS = _ALL_DELIMS - _QUERY_VALUE_SAFE
188
188
_QUERY_KEY_SAFE = _UNRESERVED_CHARS | _QUERY_VALUE_SAFE - set (u"=" )
189
189
_QUERY_KEY_DELIMS = _ALL_DELIMS - _QUERY_KEY_SAFE
@@ -931,9 +931,9 @@ class URL(object):
931
931
https://example.com/hello/world
932
932
933
933
The constructor runs basic type checks. All strings are expected
934
- to be decoded (:class:`unicode` in Python 2). All arguments are
935
- optional, defaulting to appropriately empty values. A full list of
936
- constructor arguments is below.
934
+ to be text (:class:`str` in Python 3, :class:` unicode` in Python 2). All
935
+ arguments are optional, defaulting to appropriately empty values. A full
936
+ list of constructor arguments is below.
937
937
938
938
Args:
939
939
scheme: The text name of the scheme.
@@ -943,9 +943,9 @@ class URL(object):
943
943
it is known. See the ``SCHEME_PORT_MAP`` and
944
944
:func:`register_default_port` for more info.
945
945
path: A tuple of strings representing the slash-separated parts of the
946
- path.
946
+ path, each percent-encoded .
947
947
query: The query parameters, as a dictionary or as an sequence of
948
- key-value pairs.
948
+ percent-encoded key-value pairs.
949
949
fragment: The fragment part of the URL.
950
950
rooted: A rooted URL is one which indicates an absolute path.
951
951
This is True on any URL that includes a host, or any relative URL
0 commit comments