[Checkins] SVN: zope.publisher/trunk/src/zope/publisher/interfaces/http.py An integer value is preferred for setStatus (thanks Gary)

Shane Hathaway shane at hathawaymix.org
Fri Jan 30 14:27:27 EST 2009


Log message for revision 95604:
  An integer value is preferred for setStatus (thanks Gary)
  

Changed:
  U   zope.publisher/trunk/src/zope/publisher/interfaces/http.py

-=-
Modified: zope.publisher/trunk/src/zope/publisher/interfaces/http.py
===================================================================
--- zope.publisher/trunk/src/zope/publisher/interfaces/http.py	2009-01-30 18:56:35 UTC (rev 95603)
+++ zope.publisher/trunk/src/zope/publisher/interfaces/http.py	2009-01-30 19:27:27 UTC (rev 95604)
@@ -333,7 +333,7 @@
     def setStatus(status, reason=None):
         """Sets the HTTP status code of the response
 
-        The status parameter must be either an integer, a value
+        The status parameter must be either an integer (preferred), a value
         that can be converted to an integer using the int() function,
         or one of the standard status messages listed in the status_codes
         dict of the zope.publisher.http module (including "OK", "NotFound",



More information about the Checkins mailing list