Unquote the auth after splitting the url.
TypeError, not AttributeError on 3.3.
Meet @sigmavirus24's demanding stylistic criteria.
Be less defensive in get_auth_from_url.
Don't need to unquote twice.
Fixed parsing of username and password encoded in the URI
Merged changes from @lukasa
Added comment for test test_get_auth_from_url
Merge pull request #1862 from sybeck2k/master

Fixed parsing of username and password encoded in the URI