[Zope3-checkins] SVN: Zope3/trunk/src/zope/publisher/http.py The
deprecation warning now prints more useful information
Dmitry Vasiliev
dima at hlabs.spb.ru
Fri Oct 28 08:57:00 EDT 2005
Log message for revision 39688:
The deprecation warning now prints more useful information
Changed:
U Zope3/trunk/src/zope/publisher/http.py
-=-
Modified: Zope3/trunk/src/zope/publisher/http.py
===================================================================
--- Zope3/trunk/src/zope/publisher/http.py 2005-10-28 10:14:24 UTC (rev 39687)
+++ Zope3/trunk/src/zope/publisher/http.py 2005-10-28 12:57:00 UTC (rev 39688)
@@ -281,7 +281,10 @@
warnings.warn("Can't pass output streams to requests anymore. "
"This will go away in Zope 3.4.",
DeprecationWarning,
- 2)
+ # HTTPRequest.__init__() mostly called through
+ # BrowserRequest.__init__() so we need to shift
+ # to another one step backward.
+ 3)
environ, response = response, outstream
super(HTTPRequest, self).__init__(
More information about the Zope3-Checkins
mailing list