From: Antonio Ospite Date: Sat, 26 Nov 2011 12:08:44 +0000 (+0100) Subject: winfreed.py: fix "W293 blank line contains whitespace" from pep8 X-Git-Url: https://git.ao2.it/winfreed.git/commitdiff_plain/b9ebecc89dcf34f0b4c166701e4a5f0b8c8a520c winfreed.py: fix "W293 blank line contains whitespace" from pep8 --- diff --git a/winfreed.py b/winfreed.py index a1639c3..13b7580 100755 --- a/winfreed.py +++ b/winfreed.py @@ -79,7 +79,7 @@ def download(pkg): # re pattern from http://stackoverflow.com/questions/8035900 content_disposition = response.info().getheader('Content-Disposition').strip() filename = re.findall("filename=(\S+)", content_disposition)[0] - + if filename == "": filename = urllib2.unquote(os.path.basename(response.geturl())) @@ -145,5 +145,5 @@ if __name__ == "__main__": else: usage() sys.exit(1) - + sys.exit(0)