(self)
| 31 | super().__init__(str(data).encode(*self.encoding_args)) # type: ignore |
| 32 | |
| 33 | def get_data(self): |
| 34 | data = super().get_data() # type: ignore |
| 35 | try: |
| 36 | return data.decode(*self.encoding_args) |
| 37 | except ValueError: |
| 38 | signals.status_message.send(message="Invalid encoding.") |
| 39 | raise |
| 40 | |
| 41 | |
| 42 | # urwid forces a different name for a subclass. |