def setupOutputs(self, config):
if self.proto == '<STR_LIT>':<EOL><INDENT>defaultOutput = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': self.server,<EOL>'<STR_LIT:port>': self.port<EOL>}<EOL><DEDENT>else:<EOL><INDENT>defaultOutput = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': self.server,<EOL>'<STR_LIT:port>': self.port<EOL>}<EOL><DEDENT>outputs = config.get('<STR_LIT>', [defaultOutput])<EOL>for output in outputs:<EOL><INDENT>if not ('<STR_LIT>' in output):<EOL><INDENT>output['<STR_LIT>'] = self.debug<EOL><DEDENT>cl = output['<STR_LIT>'].split('<STR_LIT:.>')[-<NUM_LIT:1>]                <EOL>path = '<STR_LIT:.>'.join(output['<STR_LIT>'].split('<STR_LIT:.>')[:-<NUM_LIT:1>])   <EOL>outputObj = getattr(<EOL>importlib.import_module(path), cl)(output, self)<EOL>name = output.get('<STR_LIT:name>', None)<EOL>if name in self.outputs:<EOL><INDENT>self.outputs[name].append(outputObj)<EOL><DEDENT>else:<EOL><INDENT>self.outputs[name] = [outputObj]<EOL><DEDENT>reactor.callLater(<NUM_LIT:0>, outputObj.createClient)<EOL><DEDENT>
Setup output processors