[issue1637] urlparse.urlparse misparses URLs with query but no path

2008-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: Backport to 2.5.2: Committed revision 59760. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Uns

[issue1637] urlparse.urlparse misparses URLs with query but no path

2008-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: I checked in your change and made up a test. Committed revision 59758. Thanks! -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> _

[issue1637] urlparse.urlparse misparses URLs with query but no path

2008-01-05 Thread vila
Changes by vila: -- nosy: +vila __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailma

[issue1637] urlparse.urlparse misparses URLs with query but no path

2007-12-19 Thread Guido van Rossum
Guido van Rossum added the comment: > I tried downloading the latest rev of urlparse.py (59480) and it flunked > its own unit test, "urlparse.test()" Two test cases fail. That's not the official test -- that code should probably be deleted. The real test is in Lib/test/test_urlparse.py. Pleas

[issue1637] urlparse.urlparse misparses URLs with query but no path

2007-12-19 Thread John Nagle
John Nagle added the comment: I tried downloading the latest rev of urlparse.py (59480) and it flunked its own unit test, "urlparse.test()" Two test cases fail. So I don't want to try to fix the module until the last people to change it fix their unit test problems. The fix I provided should fi

[issue1637] urlparse.urlparse misparses URLs with query but no path

2007-12-18 Thread Guido van Rossum
Guido van Rossum added the comment: Would you mind submitting a proper patch for Python 2.5 and/or 2.6 generated by "svn diff" relative to an (anonymous) checkout, and adding a unit test? Then I'd be happy to accept this and if it makes it in time for the 2.5.2 release we'll fix it there. -

[issue1637] urlparse.urlparse misparses URLs with query but no path

2007-12-16 Thread John Nagle
New submission from John Nagle: urlparse.urlparse will mis-parse URLs which have a "/" after a "?". >> >> sa1 = 'http://example.com?blahblah=/foo' >> sa2 = 'http://example.com?blahblah=foo' >> print urlparse.urlparse(sa1) >> ('http', 'example.com?blahblah=', '/foo', '', '', '') # WRONG >> print u

[issue1637] urlparse.urlparse misparses URLs with query but no path

2007-12-16 Thread John Nagle
Changes by John Nagle: -- components: Library (Lib) nosy: nagle severity: normal status: open title: urlparse.urlparse misparses URLs with query but no path type: behavior versions: Python 2.4, Python 2.5 __ Tracker <[EMAIL PROTECTED]>