##// END OF EJS Templates
don't depend on features of Exception as much...
Dirkjan Ochtman -
r13599:0bef8f69 default
parent child Browse files
Show More
@@ -73,10 +73,12 b' class ErrorResponse(Exception):'
73 def __init__(self, code, message=None, headers=[]):
73 def __init__(self, code, message=None, headers=[]):
74 if message is None:
74 if message is None:
75 message = _statusmessage(code)
75 message = _statusmessage(code)
76 Exception.__init__(self, code, message)
76 super(Exception, self).__init__()
77 self.code = code
77 self.code = code
78 self.message = message
78 self.message = message
79 self.headers = headers
79 self.headers = headers
80 def __str__(self):
81 return self.message
80
82
81 class continuereader(object):
83 class continuereader(object):
82 def __init__(self, f, write):
84 def __init__(self, f, write):
General Comments 0
You need to be logged in to leave comments. Login now