You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
292 B

#!/usr/bin/env python
from . import codecs
_codec_table = dict([(x, getattr(codecs, y)) for x, y in list(codecs.CODECS.items())])
def get_codec_table():
return _codec_table
def add_codec(codec_module, codec_name, codec_obj):
_codec_table[(codec_module, codec_name)] = codec_obj