equal
deleted
inserted
replaced
94 def __init__(self, code, message=None, headers=None): |
94 def __init__(self, code, message=None, headers=None): |
95 if message is None: |
95 if message is None: |
96 message = _statusmessage(code) |
96 message = _statusmessage(code) |
97 Exception.__init__(self, message) |
97 Exception.__init__(self, message) |
98 self.code = code |
98 self.code = code |
99 self.headers = headers or [] |
99 if headers is None: |
|
100 headers = [] |
|
101 self.headers = headers |
100 |
102 |
101 class continuereader(object): |
103 class continuereader(object): |
102 def __init__(self, f, write): |
104 def __init__(self, f, write): |
103 self.f = f |
105 self.f = f |
104 self._write = write |
106 self._write = write |