manual pep8 W291,W293,W391 blank lines, trailing whitespace

This commit is contained in:
Jesse Mullan
2014-10-27 11:03:41 -07:00
parent 9eef7e40f5
commit 7369311501
6 changed files with 32 additions and 36 deletions
+3 -3
View File
@@ -33,7 +33,7 @@ class AuthURLOpener(HeadphonesURLopener):
"""
URLOpener class that supports http auth without needing interactive password entry.
If the provided username/password don't work it simply fails.
user: username to use for HTTP auth
pw: password to use for HTTP auth
"""
@@ -44,7 +44,7 @@ class AuthURLOpener(HeadphonesURLopener):
# remember if we've tried the username/password before
self.numTries = 0
# call the base class
urllib.FancyURLopener.__init__(self)
@@ -58,7 +58,7 @@ class AuthURLOpener(HeadphonesURLopener):
if self.numTries == 0:
self.numTries = 1
return (self.username, self.password)
# if we've tried before then return blank which cancels the request
else:
return ('', '')