Meet @sigmavirus24's demanding stylistic criteria.

This commit is contained in:
Cory Benfield
2014-01-12 09:39:32 +00:00
parent dddb41e349
commit b4ca6c95b6
+5 -3
View File
@@ -638,11 +638,13 @@ def get_auth_from_url(url):
parsed = urlparse(url)
try:
return (unquote(parsed.username), unquote(parsed.password))
auth = (unquote(parsed.username), unquote(parsed.password))
except (AttributeError, TypeError):
pass
auth = ('', '')
else:
auth = ('', '')
return ('', '')
return auth
def to_native_string(string, encoding='ascii'):