Comment 4 for bug 405687

Revision history for this message
Fred Drake (fdrake) wrote :

Testing for "://" isn't correct, since not all URIs contain "//"; this is only needed for URI schemes that contain a hierarchical path portion.

So long as ":" is allowed in paths and relative paths may be mixed with full URIs, "ab:c" will be ambiguous if we don't want to impose restrictions on scheme identifiers beyond those specified by the relevant RFCs. This suggests that some separate bit is needed to identify absolute or relative path information unambiguously.

See details on URI syntax in RFC 3986:

    http://www.faqs.org/rfcs/rfc3986.html

Fix committed in revision 105068.