def read_cde_type(path, content_type, asin): if content_type == CONTENT_TYPE_MOBIPOCKET: return mobi.read_cde_type(path, asin) if content_type == CONTENT_TYPE_PDF: return 'PDOC'
def read_cde_type(path, content_type, asin): if content_type in ( _CONTENT_TYPE_MOBI, _CONTENT_TYPE_MOBI8 ): return mobi.read_cde_type(path, asin) if content_type == _CONTENT_TYPE_PDF: return 'PDOC'
def read_cde_type(path, content_type, asin): if content_type in (_CONTENT_TYPE_MOBI, _CONTENT_TYPE_MOBI8): return mobi.read_cde_type(path, asin) if content_type == _CONTENT_TYPE_PDF: return 'PDOC'