Lookup up the codec for the given encoding and return its StreamReader class or factory function. Raises a LookupError in case the encoding cannot be found.
(encoding)
| 1021 | return decoder |
| 1022 | |
| 1023 | def getreader(encoding): |
| 1024 | |
| 1025 | """ Lookup up the codec for the given encoding and return |
| 1026 | its StreamReader class or factory function. |
| 1027 | |
| 1028 | Raises a LookupError in case the encoding cannot be found. |
| 1029 | |
| 1030 | """ |
| 1031 | return lookup(encoding).streamreader |
| 1032 | |
| 1033 | def getwriter(encoding): |
| 1034 |
searching dependent graphs…