iota/codecs.py
def get_codec_info(cls):
        """
        Returns information used by the codecs library to configure the
        codec for use.
        """
        codec = cls()

        codec_info = {
            'encode': codec.encode,
            'decode': codec.decode,
        }

        # In Python 2, all codecs are made equal.
        # In Python 3, some codecs are more equal than others.
        if PY3:
            codec_info['_is_text_encoding'] = False

        return CodecInfo(**codec_info)
def get_codec_info(cls):
        codec = cls()

        codec_info = {
            'encode': codec.encode,
            'decode': codec.decode,
        }

        # In Python 2, all codecs are made equal.
        # In Python 3, some codecs are more equal than others.
        if PY3:
            codec_info['_is_text_encoding'] = False

        return CodecInfo(**codec_info)
def get_codec_info ( cls ) : codec = cls ( ) codec_info = { 'encode' : codec . encode , 'decode' : codec . decode , } # In Python 2, all codecs are made equal. # In Python 3, some codecs are more equal than others. if PY3 : codec_info [ '_is_text_encoding' ] = False return CodecInfo ( * * codec_info )
Returns information used by the codecs library to configure the
        codec for use.
Returns information used by the codecs library to configure the codec for use .