[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - BaseResponse.py:1.14

Tres Seaver tseaver@zope.com
Sat, 22 Jun 2002 10:04:56 -0400


Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv20507

Modified Files:
	BaseResponse.py 
Log Message:
 - Whitespace normalization.

=== Zope/lib/python/ZPublisher/BaseResponse.py 1.13 => 1.14 ===
 
 $Id$'''
-__version__='$Revision$'[11:-2]
+__version__ = '$Revision$'[11:-2]
 
 import  types, sys
 from types import StringType, InstanceType
@@ -24,12 +24,12 @@
 
     What should be here?
     """
-    debug_mode=None
-    _auth=None
-    _error_format='text/plain'
+    debug_mode = None
+    _auth = None
+    _error_format = 'text/plain'
     
     # Allow (reluctantly) access to unprotected attributes
-    __allow_access_to_unprotected_subobjects__=1
+    __allow_access_to_unprotected_subobjects__ = 1
         
     def __init__(self, stdout, stderr,
                  body='', headers=None, status=None, cookies=None):
@@ -37,20 +37,20 @@
         self.stderr = stderr
         self.body = body
         if headers is None:
-            headers={}
+            headers = {}
         self.headers = headers
         self.status = status
         if cookies is None:
-            cookies={}
+            cookies = {}
         self.cookies = cookies
     
     def setStatus(self, status, reason=None):
         self.status = status
 
     def setHeader(self, name, value):
-        self.headers[name]=value
+        self.headers[name] = value
 
-    __setitem__=setHeader
+    __setitem__ = setHeader
 
     def outputBody(self):
         """Output the response body"""
@@ -78,8 +78,8 @@
         else:
             cookie = cookies[name] = {}
         for k, v in kw.items():
-            cookie[k]=v
-        cookie['value']=value
+            cookie[k] = v
+        cookie['value'] = value
 
     def appendBody(self, body):
         self.setBody(self.getBody() + body)