(self, charset)
| 1939 | or charset |
| 1940 | |
| 1941 | def _codec(self, charset): |
| 1942 | if not charset: return charset |
| 1943 | codec = None |
| 1944 | try: |
| 1945 | codecs.lookup(charset) |
| 1946 | codec = charset |
| 1947 | except (LookupError, ValueError): |
| 1948 | pass |
| 1949 | return codec |
| 1950 | |
| 1951 | EBCDIC_TO_ASCII_MAP = None |
| 1952 | def _ebcdic_to_ascii(self, s): |