(read_data)
| 2955 | |
| 2956 | |
| 2957 | def _to_stream(read_data): |
| 2958 | if isinstance(read_data, bytes): |
| 2959 | return io.BytesIO(read_data) |
| 2960 | else: |
| 2961 | return io.StringIO(read_data) |
| 2962 | |
| 2963 | |
| 2964 | def mock_open(mock=None, read_data=''): |
no test coverage detected