Returns True if this message is a Response to a request of one of the specified types.
(self, *command)
| 491 | return command == () or self.command in command |
| 492 | |
| 493 | def is_response(self, *command): |
| 494 | """Returns True if this message is a Response to a request of one of the |
| 495 | specified types. |
| 496 | """ |
| 497 | if not isinstance(self, Response): |
| 498 | return False |
| 499 | return command == () or self.request.command in command |
| 500 | |
| 501 | def error(self, exc_type, format_string, *args, **kwargs): |
| 502 | """Returns a new exception of the specified type from the point at which it is |