File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1158,8 +1158,19 @@ def replace(
11581158 slash.
11591159 userinfo (Text): The username or colon-separated username:password
11601160 pair.
1161- uses_netloc (bool): Indicates whether rooted paths should include a
1162- scheme-separator by default.
1161+ uses_netloc (bool): Indicates whether ``://`` (the "netloc
1162+ separator") will appear to separate the scheme from the *path*
1163+ in cases where no host is present. Setting this to ``True`` is
1164+ a non-spec-compliant affordance for the common practice of
1165+ having URIs that are *not* URLs (cannot have a 'host' part) but
1166+ nevertheless use the common ``://`` idiom that most people
1167+ associate with URLs; e.g. ``message:`` URIs like
1168+ ``message://message-id`` being equivalent to
1169+ ``message:message-id``. This may be inferred based on the
1170+ scheme depending on whether :func:`register_scheme` has been
1171+ used to register the scheme and should not be passed directly
1172+ unless you know the scheme works like this and you know it has
1173+ not been registered.
11631174
11641175 Returns:
11651176 URL: A copy of the current :class:`URL`, with new values for
You can’t perform that action at this time.
0 commit comments