File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1145,10 +1145,13 @@ def test_autorooted(self):
11451145 def test_rooted_with_port_but_no_host (self ):
11461146 # type: () -> None
11471147 """
1148- URLs which include a netloc separator are inherently rooted, regardless
1149- of whether they include one because they specify an explicit host or
1150- port, whether they are parsed or directly constructed, and whether the
1151- ``rooted`` constructor argument is supplied or not.
1148+ URLs which include a ``://`` netloc-separator for any reason are
1149+ inherently rooted, regardless of the value or presence of the
1150+ ``rooted`` constructor argument.
1151+
1152+ They may include a netloc-separator because their constructor was
1153+ directly invoked with an explicit host or port, or because they were
1154+ parsed from a string which included the literal ``://`` separator.
11521155 """
11531156 directly_constructed = URL (scheme = 'udp' , port = 4900 , rooted = False )
11541157 directly_constructed_implict = URL (scheme = 'udp' , port = 4900 )
You can’t perform that action at this time.
0 commit comments