| 6 | |
| 7 | |
| 8 | class PlainTextEncoder(DataEncoder): |
| 9 | def __init__(self): |
| 10 | super().__init__('plain-text', |
| 11 | 'Does not encode or decode data at all, instead keeps it in plain text form') |
| 12 | |
| 13 | def encode(self, data, **_): |
| 14 | return data |
| 15 | |
| 16 | def decode(self, encoded_data, **_): |
| 17 | return encoded_data |
no outgoing calls