def get_encoder_from_extension()

in cassette/utils.py [0:0]


    def get_encoder_from_extension(extension):
        """Return the correct encoder that corresponds to the file extension.

        :param str extension:
        """
        if not extension:
            # It's a dir.
            return DEFAULT_ENCODER

        file_format = extension.replace('.', '')
        return Encoder.get_encoder_from_file_format(file_format)