Inconsistent behaviour for 'path' in URI constructor

Bug #435790 reported by Jonathan Lange on 2009-09-24
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

If you construct a URI like this:
   uri = URI(scheme='http', host='', path='foo/bar')

You will end up with a URI like this:
   print str(uri)

I'd expect a URI like:

Or at least an error, asserting that the path should begin with a leading '/'. This is what other parts of lazr.uri do with paths without leading slashes. I'd much prefer implicitly adding one, but at least lazr.uri should be consistent, whatever it does.

Curtis Hovey (sinzui) on 2009-10-09
tags: added: tech-debt
Changed in lazr.uri:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers