Browse Source

Corrected things from the merge.

MalcolmMielle 5 years ago
parent
commit
91a7334a65
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      emails_sms_free.py

+ 5
- 4
emails_sms_free.py View File

@@ -13,12 +13,12 @@ import time
13 13
 
14 14
 #This is used to import library depending on the python version used.
15 15
 try:
16
-	#import urllib.request as urllib_request #for python 3
16
+	#for python 3
17 17
 	import json
18 18
 except ImportError:
19
-	#import urllib2 as urllib_request # for python 2
19
+	# for python 2
20 20
 	import simplejson as json
21
-	print('Error importing lib as pyhton3, switching to python 2 libraries')
21
+	print('Error importing lib as python3, switching to python 2 libraries')
22 22
 
23 23
 msg_ids = {}
24 24
 
@@ -64,7 +64,8 @@ def send(url, user, password, msg, i=0):
64 64
 
65 65
 def get_emails(imap_server, imap_user, imap_password, inbox, uid):
66 66
     global msg_ids
67
-    print('Connecting to '+imap_server+'… ', end=' ')
67
+    
68
+    print('Connecting to '+imap_server+'… ', end='')
68 69
     conn = imaplib.IMAP4_SSL(imap_server)
69 70
     print('Connected')
70 71
     to_send = []