Exception raised when a file cannot be decoded due to an unknown encoding type. Essentially a wrapper for the LookupError raised by `bytearray.decode`
| 152 | |
| 153 | |
| 154 | class DecodeError(Exception): |
| 155 | """Exception raised when a file cannot be decoded due to an unknown encoding type. |
| 156 | |
| 157 | Essentially a wrapper for the LookupError raised by `bytearray.decode` |
| 158 | """ |
| 159 | |
| 160 | |
| 161 | def decode_python_encoding(source: bytes) -> str: |
no outgoing calls
no test coverage detected
searching dependent graphs…