Lookup up the codec for the given encoding and return its encoder function. Raises a LookupError in case the encoding cannot be found.
(encoding)
| 973 | ### Helpers for codec lookup |
| 974 | |
| 975 | def getencoder(encoding): |
| 976 | |
| 977 | """ Lookup up the codec for the given encoding and return |
| 978 | its encoder function. |
| 979 | |
| 980 | Raises a LookupError in case the encoding cannot be found. |
| 981 | |
| 982 | """ |
| 983 | return lookup(encoding).encode |
| 984 | |
| 985 | def getdecoder(encoding): |
| 986 |
nothing calls this directly
no test coverage detected
searching dependent graphs…