def apply(self):
source = self.document['<STR_LIT:source>']<EOL>self.reporter.info('<STR_LIT>' % source)<EOL>if not source.endswith(tuple(self.config['<STR_LIT>'])):<EOL><INDENT>return<EOL><DEDENT>self.url_resolver = self.config['<STR_LIT>']<EOL>assert callable(self.url_resolver)<EOL>self.state_machine = DummyStateMachine()<EOL>self.current_level = <NUM_LIT:0><EOL>self.file_dir = os.path.abspath(os.path.dirname(self.document['<STR_LIT:source>']))<EOL>self.root_dir = os.path.abspath(self.document.settings.env.srcdir)<EOL>self.traverse(self.document)<EOL>
Apply the transformation by configuration.