(data)
| 289 | |
| 290 | @staticmethod |
| 291 | def _is_stream_handle(data): |
| 292 | obj_to_check = data.file_obj if isinstance(data, StreamWrapper) else data |
| 293 | return isinstance(obj_to_check, (io.BufferedIOBase, io.RawIOBase)) |
| 294 | |
| 295 | def decode1(self, key, data): |
| 296 | if not data: |