| 1500 | pass |
| 1501 | |
| 1502 | class IncompleteRead(HTTPException): |
| 1503 | def __init__(self, partial, expected=None): |
| 1504 | self.args = partial, |
| 1505 | self.partial = partial |
| 1506 | self.expected = expected |
| 1507 | def __repr__(self): |
| 1508 | if self.expected is not None: |
| 1509 | e = ', %i more expected' % self.expected |
| 1510 | else: |
| 1511 | e = '' |
| 1512 | return '%s(%i bytes read%s)' % (self.__class__.__name__, |
| 1513 | len(self.partial), e) |
| 1514 | __str__ = object.__str__ |
| 1515 | |
| 1516 | class ImproperConnectionState(HTTPException): |
| 1517 | pass |
no outgoing calls
no test coverage detected