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

Stefan H. Holek stefan at epy.co.at
Wed Jul 13 05:20:32 EDT 2011


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] = {}



More information about the Zope-Checkins mailing list