def observe_scanner(self, scanner):
scanner.observe(scanner.ALL_EVENTS,<EOL>self.absorb_args(self.modules.restore))<EOL>if self.clear:<EOL><INDENT>scanner.observe(scanner.ALL_EVENTS,<EOL>self.absorb_args(self.clear_on_run))<EOL><DEDENT>scanner.observe(scanner.ALL_EVENTS, self.absorb_args(self._run))<EOL>if self.debug:<EOL><INDENT>scanner.observe('<STR_LIT>',  echo("<STR_LIT>"))<EOL>scanner.observe('<STR_LIT>', echo("<STR_LIT>"))<EOL>scanner.observe('<STR_LIT>',  echo("<STR_LIT>"))<EOL><DEDENT>self._scanners.append(scanner)<EOL>
Hooks into multiple events of a scanner.