Lookup up the codec for the given encoding and return its IncrementalDecoder class or factory function. Raises a LookupError in case the encoding cannot be found or the codecs doesn't provide an incremental decoder.
(encoding)
| 1007 | return encoder |
| 1008 | |
| 1009 | def getincrementaldecoder(encoding): |
| 1010 | |
| 1011 | """ Lookup up the codec for the given encoding and return |
| 1012 | its IncrementalDecoder class or factory function. |
| 1013 | |
| 1014 | Raises a LookupError in case the encoding cannot be found |
| 1015 | or the codecs doesn't provide an incremental decoder. |
| 1016 | |
| 1017 | """ |
| 1018 | decoder = lookup(encoding).incrementaldecoder |
| 1019 | if decoder is None: |
| 1020 | raise LookupError(encoding) |
| 1021 | return decoder |
| 1022 | |
| 1023 | def getreader(encoding): |
| 1024 |
no test coverage detected
searching dependent graphs…