def do_data(ftype, data, afile): if ftype == constants.BF_UNKNOWN: return elif ftype == constants.BF_BZIP2: from blueflower.modules.bzip2 import bzip2_do_data bzip2_do_data(data, afile) elif ftype == constants.BF_DOCX: from blueflower.modules.docx import docx_do_data docx_do_data(data, afile) elif ftype == constants.BF_GZ: from blueflower.modules.gz import gz_do_data gz_do_data(data, afile) elif ftype == constants.BF_PDF: from blueflower.modules.pdf import pdf_do_data pdf_do_data(data, afile) elif ftype == constants.BF_TAR: from blueflower.modules.tar import tar_do_data tar_do_data(data, afile) elif ftype == constants.BF_TEXT: from blueflower.modules.text import text_do_data text_do_data(data, afile) elif ftype == constants.BF_XLSX: from blueflower.modules.xlsx import xlsx_do_data xlsx_do_data(data, afile) elif ftype == constants.BF_ZIP: from blueflower.modules.zip import zip_do_data zip_do_data(data, afile)
def do_data(ftype, data, afile): if ftype == "other": return elif ftype == "bzip2": from blueflower.modules.bzip2 import bzip2_do_data bzip2_do_data(data, afile) elif ftype == "gz": from blueflower.modules.gz import gz_do_data gz_do_data(data, afile) elif ftype == "pdf": from blueflower.modules.pdf import pdf_do_data pdf_do_data(data, afile) elif ftype == "tar": from blueflower.modules.tar import tar_do_data tar_do_data(data, afile) elif ftype == "text": from blueflower.modules.text import text_do_data text_do_data(data, afile) elif ftype == "zip": from blueflower.modules.zip import zip_do_data zip_do_data(data, afile)
def do_data(ftype, data, afile): if ftype == 'other': return elif ftype == 'bzip2': from blueflower.modules.bzip2 import bzip2_do_data bzip2_do_data(data, afile) elif ftype == 'gz': from blueflower.modules.gz import gz_do_data gz_do_data(data, afile) elif ftype == 'pdf': from blueflower.modules.pdf import pdf_do_data pdf_do_data(data, afile) elif ftype == 'tar': from blueflower.modules.tar import tar_do_data tar_do_data(data, afile) elif ftype == 'text': from blueflower.modules.text import text_do_data text_do_data(data, afile) elif ftype == 'zip': from blueflower.modules.zip import zip_do_data zip_do_data(data, afile)