From aead01258d9c341ead486c68a1258ff2e4c3ed34 Mon Sep 17 00:00:00 2001 From: Maks Snegov Date: Sat, 21 Jun 2014 09:43:12 +0400 Subject: [PATCH] remove never used if condition --- nevernote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nevernote.py b/nevernote.py index 8baeffa..b715eaa 100755 --- a/nevernote.py +++ b/nevernote.py @@ -26,7 +26,7 @@ def download_content(url): "Connection": "keep-alive", } - if not up.scheme or up.scheme == 'http': + if up.scheme == 'http': conn = http.client.HTTPConnection(up.netloc) elif up.scheme == 'https': conn = http.client.HTTPSConnection(up.netloc) @@ -40,7 +40,7 @@ def download_content(url): if ((response.status == http.client.MOVED_PERMANENTLY) or (response.status == http.client.FOUND)): new_url = response.getheader('Location') - print('Redirect to ' + new_url) + print('Redirecting to ' + new_url) return download_content(new_url) return response