Skip to content

Commit 8864e3f

Browse files
committed
Fixed indenting
1 parent f9b8c9f commit 8864e3f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

chapter5/8-sendEmailWhenChristmas.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ def sendMail(subject, body):
1010
msg['From'] = "[email protected]"
1111
msg['To'] = "[email protected]"
1212

13-
s = smtplib.SMTP('localhost')
14-
s.send_message(msg)
15-
s.quit()
13+
s = smtplib.SMTP('localhost')
14+
s.send_message(msg)
15+
s.quit()
1616

1717
bsObj = BeautifulSoup(urlopen("https://isitchristmas.com/"))
1818
while(bsObj.find("a", {"id":"answer"}).attrs['title'] == "NO"):
1919
print("It is not Christmas yet.")
2020
time.sleep(3600)
21-
bsObj = BeautifulSoup(urlopen("https://isitchristmas.com/"))
22-
sendMail("It's Christmas!", "According to http://itischristmas.com, it is Christmas!")
21+
bsObj = BeautifulSoup(urlopen("https://isitchristmas.com/"))
22+
sendMail("It's Christmas!", "According to http://itischristmas.com, it is Christmas!")

0 commit comments

Comments
 (0)