mollyproject/mollyproject — comment on commit e208f710988a81909a19e678067234f62ebb4a15
File:  line 0
By alexsdutton:

Am I right in thinking that Molly is supposed to support Py2.5? If so, you'll need to go with the less-readable ``urlparse.urlparse(…)[2]``, as only in Py2.6 onwards is the result a named tuple.

alex@machine:~$ python
Python 2.5.2 (r252:60911, Jan 24 2010, 14:53:14)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import urlparse
>>> urlparse.urlparse('http://foo.bar/baz/')
('http', 'foo.bar', '/baz/', '', '', '')