Skip to content

Commit 04270c7

Browse files
flake8
1 parent 0161fb6 commit 04270c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

email_feed/gmail_feed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
r = requests.get(URL)
1010

1111
if r.status_code == 401:
12-
print("login [%s] or password [%s] is incorrect\n%s" % (username, password, 'Error'))
12+
print("login [%s] or password [%s] is incorrect\n%s" % (username, password, 'Error'))
1313
elif r.status_code != 200:
1414
print("Requests error [%s] - %s" % (r.status_code, URL))
1515
elif r.status_code == 200:
@@ -21,7 +21,7 @@
2121
key_words2 = re.findall('Stop these mails', text)
2222
keys = key_words1 + key_words2
2323
urls = re.findall(r'''(?:(?:https?|ftp):\/\/)?[\w/\-?=%.]+\.[\w/\-&?=%.]+''', text)
24-
if len(keys) > 0 and len(urls)> 0:
24+
if len(keys) > 0 and len(urls) > 0:
2525
print(a['feed']['entry'][k]['title'])
2626
print(a['feed']['entry'][k]['summary'][0:50])
2727
print(a['feed']['entry'][k]['author']['email'])

0 commit comments

Comments
 (0)