This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients chris.jerdonek, xtreak
Date 2018-07-30.13:07:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532956068.07.0.56676864532.issue34276@psf.upfronthosting.co.za>
In-reply-to
Content
I just checked back the behavior on Perl's https://github.com/libwww-perl/URI/ . It seems to handle that along with other additional cases. Maybe some of the tests can be adopted from there for better coverage too (https://github.com/libwww-perl/URI/blob/master/t/split.t)

$ cat bpo34276.pl
use URI::Split qw(uri_split uri_join);

sub print_url{
    my $uri = shift;
    print "original uri ", $uri, "\n";
    ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
    $uri = uri_join($scheme, $auth, $path, $query, $frag);
    print "returned uri ", $uri, "\n";
}

print_url("file://root/a");
print_url("file:///root/a");
print_url("file:////root/a");
print_url("file://///root/a");

$ perl bpo34276.pl
original uri file://root/a
returned uri file://root/a
original uri file:///root/a
returned uri file:///root/a
original uri file:////root/a
returned uri file:////root/a
original uri file://///root/a
returned uri file://///root/a


Thanks
History
Date User Action Args
2018-07-30 13:07:48xtreaksetrecipients: + xtreak, chris.jerdonek
2018-07-30 13:07:48xtreaksetmessageid: <1532956068.07.0.56676864532.issue34276@psf.upfronthosting.co.za>
2018-07-30 13:07:48xtreaklinkissue34276 messages
2018-07-30 13:07:48xtreakcreate