Return a string representation or raise a KeyError.
(self, key, from_=False)
| 786 | return msg |
| 787 | |
| 788 | def get_string(self, key, from_=False): |
| 789 | """Return a string representation or raise a KeyError.""" |
| 790 | return email.message_from_bytes( |
| 791 | self.get_bytes(key, from_)).as_string(unixfrom=from_) |
| 792 | |
| 793 | def get_bytes(self, key, from_=False): |
| 794 | """Return a string representation or raise a KeyError.""" |