From b9ebecc89dcf34f0b4c166701e4a5f0b8c8a520c Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sat, 26 Nov 2011 13:08:44 +0100 Subject: [PATCH] winfreed.py: fix "W293 blank line contains whitespace" from pep8 --- winfreed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.1.4