(self, charset)
| 1933 | |
| 1934 | |
| 1935 | def find_codec(self, charset): |
| 1936 | return self._codec(self.CHARSET_ALIASES.get(charset, charset)) \ |
| 1937 | or (charset and self._codec(charset.replace("-", ""))) \ |
| 1938 | or (charset and self._codec(charset.replace("-", "_"))) \ |
| 1939 | or charset |
| 1940 | |
| 1941 | def _codec(self, charset): |
| 1942 | if not charset: return charset |
no test coverage detected