[Python-checkins] python/dist/src/Lib hmac.py,1.4,1.5 smtplib.py,1.53,1.54

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
2002年5月31日 10:49:13 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv25108
Modified Files:
	hmac.py smtplib.py 
Log Message:
Replace '== None' with 'is None'
Index: hmac.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/hmac.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** hmac.py	13 Nov 2001 21:51:26 -0000	1.4
--- hmac.py	31 May 2002 17:49:10 -0000	1.5
***************
*** 28,32 ****
 digestmod: A module supporting PEP 247. Defaults to the md5 module.
 """
! if digestmod == None:
 import md5
 digestmod = md5
--- 28,32 ----
 digestmod: A module supporting PEP 247. Defaults to the md5 module.
 """
! if digestmod is None:
 import md5
 digestmod = md5
Index: smtplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/smtplib.py,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -d -r1.53 -r1.54
*** smtplib.py	16 Apr 2002 01:38:39 -0000	1.53
--- smtplib.py	31 May 2002 17:49:10 -0000	1.54
***************
*** 550,554 ****
 (code, resp) = self.docmd("AUTH",
 AUTH_PLAIN + " " + encode_plain(user, password))
! elif authmethod == None:
 raise SMTPException("No suitable authentication method found.")
 if code not in [235, 503]:
--- 550,554 ----
 (code, resp) = self.docmd("AUTH",
 AUTH_PLAIN + " " + encode_plain(user, password))
! elif authmethod is None:
 raise SMTPException("No suitable authentication method found.")
 if code not in [235, 503]:

AltStyle によって変換されたページ (->オリジナル) /