Return the data from path as raw bytes.
(self, path)
| 945 | return self.path |
| 946 | |
| 947 | def get_data(self, path): |
| 948 | """Return the data from path as raw bytes.""" |
| 949 | if isinstance(self, (SourceLoader, ExtensionFileLoader)): |
| 950 | with _io.open_code(str(path)) as file: |
| 951 | return file.read() |
| 952 | else: |
| 953 | with _io.FileIO(path, 'r') as file: |
| 954 | return file.read() |
| 955 | |
| 956 | @_check_name |
| 957 | def get_resource_reader(self, module): |
no test coverage detected