Lookup up the codec for the given encoding and return its decoder function. Raises a LookupError in case the encoding cannot be found.
(encoding)
| 978 | return lookup(encoding).encode |
| 979 | |
| 980 | def getdecoder(encoding): |
| 981 | |
| 982 | """ Lookup up the codec for the given encoding and return |
| 983 | its decoder function. |
| 984 | |
| 985 | Raises a LookupError in case the encoding cannot be found. |
| 986 | |
| 987 | """ |
| 988 | return lookup(encoding).decode |
| 989 | |
| 990 | def getincrementalencoder(encoding): |
| 991 |