def __init__(self, *args, **kwargs):
Worker.__init__(self, *args, **kwargs)<EOL>if isinstance(self.app_info, dict):<EOL><INDENT>multithreaded = self.app_info.get('<STR_LIT>') != <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>multithreaded = False<EOL><DEDENT>self.base_environ = dict({'<STR_LIT>': self.app_info['<STR_LIT>'],<EOL>'<STR_LIT>': multithreaded,<EOL>})<EOL>self.base_environ.update(BASE_ENV)<EOL>self.app = self.app_info.get('<STR_LIT>')<EOL>if not hasattr(self.app, "<STR_LIT>"):<EOL><INDENT>raise TypeError("<STR_LIT>" % repr(self.app))<EOL><DEDENT>if has_futures and self.app_info.get('<STR_LIT>'):<EOL><INDENT>executor = self.app_info['<STR_LIT>']<EOL>self.base_environ.update({"<STR_LIT>": executor,<EOL>"<STR_LIT>": executor.futures})<EOL><DEDENT>
Builds some instance variables that will last the life of the
        thread.