SVN: Zope/trunk/src/ZPublisher/BaseResponse.py Replace a left-over has_key with in operator.

"Stefan H. Holek" <[email protected]>
Newsgroups gmane.comp.web.zope.cvs
Message-ID <[email protected]>
Log message for revision 122165:
  Replace a left-over has_key with in operator.

Changed:
  U   Zope/trunk/src/ZPublisher/BaseResponse.py

-=-
Modified: Zope/trunk/src/ZPublisher/BaseResponse.py
===================================================================
--- Zope/trunk/src/ZPublisher/BaseResponse.py	2011-07-13 08:40:38 UTC (rev 122164)
+++ Zope/trunk/src/ZPublisher/BaseResponse.py	2011-07-13 09:20:32 UTC (rev 122165)
@@ -69,7 +69,7 @@
         cookie in the Response object.
         '''
         cookies = self.cookies
-        if cookies.has_key(name):
+        if name in cookies:
             cookie = cookies[name]
         else:
             cookie = cookies[name] = {}

_______________________________________________
Zope-Checkins maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-checkins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.