def getProcessor(module, output, config):
    try:
        m = getattr(module.factory, 'generate_'+output)
    except __HOLE__:
        raise NoProcessorError("cannot generate "+output+" output")

    if config.get('ext'):
        ext = config['ext']
    else:
        from default import htmlDefault
        ext = htmlDefault['ext']

    return m(config, getFilenameGenerator(config, ext))
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/lore/process.py/getProcessor