Revision
1513
Author
wsanchez@apple.com
Date
2007-05-07 15:47:27 -0700 (Mon, 07 May 2007)

Log Message

Don't set self.args to a string

Added Paths

Diff

Added: CalendarServer/trunk/lib-patches/Twisted/twisted.web2.http.patch (0 => 1513)


--- CalendarServer/trunk/lib-patches/Twisted/twisted.web2.http.patch	                        (rev 0)
+++ CalendarServer/trunk/lib-patches/Twisted/twisted.web2.http.patch	2007-05-07 22:47:27 UTC (rev 1513)
@@ -0,0 +1,17 @@
+Index: twisted/web2/http.py
+===================================================================
+--- twisted/web2/http.py	(revision 19773)
++++ twisted/web2/http.py	(working copy)
+@@ -66,9 +66,9 @@
+             object.
+         @type codeOrResponse: C{int} or L{http.Response}
+         """
+-        Exception.__init__(self)
+-        self.response = iweb.IResponse(codeOrResponse)
+-        self.args = str(self.response)
++        response = iweb.IResponse(codeOrResponse)
++        Exception.__init__(self, str(response))
++        self.response = response
+ 
+     def __repr__(self):
+         return "<%s %s>" % (self.__class__.__name__, self.response)