def configure(self, options, config):
try:<EOL><INDENT>self.status.pop('<STR_LIT>')<EOL><DEDENT>except KeyError:<EOL><INDENT>pass<EOL><DEDENT>if not hasattr(options, '<STR_LIT>'):<EOL><INDENT>self.enabled = False<EOL>return<EOL><DEDENT>if config.worker:<EOL><INDENT>return<EOL><DEDENT>self.config = config<EOL>try:<EOL><INDENT>workers = int(options.multiprocess_workers)<EOL><DEDENT>except (TypeError, ValueError):<EOL><INDENT>workers = <NUM_LIT:0><EOL><DEDENT>if workers:<EOL><INDENT>_import_mp()<EOL>if Process is None:<EOL><INDENT>self.enabled = False<EOL>return<EOL><DEDENT>self.enabled = True<EOL>self.config.multiprocess_workers = workers<EOL>t = float(options.multiprocess_timeout)<EOL>self.config.multiprocess_timeout = t<EOL>r = int(options.multiprocess_restartworker)<EOL>self.config.multiprocess_restartworker = r<EOL>self.status['<STR_LIT>'] = True<EOL><DEDENT>
Configure plugin.