@staticmethod
    def save(filename, data):
        ext = os.path.splitext(filename)[1]

        try:
            FileManager.file_interfaces[ext].save(filename, data)
        except __HOLE__:
            # todo convert to exception
            FileManager.log.error("No config file processor available for file type {}"
                      .format(ext))
            sys.exit()
dataset/ETHPy150Open missionpinball/mpf/mpf/system/file_manager.py/FileManager.save