@@ -126,7 +126,7 @@ class SMTPAuthenticationError(SMTPResponseException):
126126
127127class SSLFakeSocket :
128128 """A fake socket object that really wraps a SSLObject.
129-
129+
130130 It only supports what is needed in smtplib.
131131 """
132132 def __init__ (self , realsock , sslobj ):
@@ -142,7 +142,7 @@ def close(self):
142142
143143class SSLFakeFile :
144144 """A fake file like object that really wraps a SSLObject.
145-
145+
146146 It only supports what is needed in smtplib.
147147 """
148148 def __init__ ( self , sslobj ):
@@ -524,15 +524,15 @@ def encode_plain(user, password):
524524 authmethod = method
525525 break
526526 if self .debuglevel > 0 : print "AuthMethod:" , authmethod
527-
527+
528528 if authmethod == AUTH_CRAM_MD5 :
529529 (code , resp ) = self .docmd ("AUTH" , AUTH_CRAM_MD5 )
530530 if code == 503 :
531531 # 503 == 'Error: already authenticated'
532532 return (code , resp )
533533 (code , resp ) = self .docmd (encode_cram_md5 (resp , user , password ))
534534 elif authmethod == AUTH_PLAIN :
535- (code , resp ) = self .docmd ("AUTH" ,
535+ (code , resp ) = self .docmd ("AUTH" ,
536536 AUTH_PLAIN + " " + encode_plain (user , password ))
537537 elif authmethod == None :
538538 raise SMTPError ("No suitable authentication method found." )
@@ -544,20 +544,20 @@ def encode_plain(user, password):
544544
545545 def starttls (self , keyfile = None , certfile = None ):
546546 """Puts the connection to the SMTP server into TLS mode.
547-
547+
548548 If the server supports TLS, this will encrypt the rest of the SMTP
549549 session. If you provide the keyfile and certfile parameters,
550550 the identity of the SMTP server and client can be checked. This,
551551 however, depends on whether the socket module really checks the
552552 certificates.
553553 """
554- (resp , reply ) = self .docmd ("STARTTLS" )
554+ (resp , reply ) = self .docmd ("STARTTLS" )
555555 if resp == 220 :
556556 sslobj = socket .ssl (self .sock , keyfile , certfile )
557557 self .sock = SSLFakeSocket (self .sock , sslobj )
558558 self .file = SSLFakeFile (sslobj )
559559 return (resp , reply )
560-
560+
561561 def sendmail (self , from_addr , to_addrs , msg , mail_options = [],
562562 rcpt_options = []):
563563 """This command performs an entire mail transaction.
0 commit comments