copydoc.py
def parse(self):
        """
        Run all parsing functions.
        """
        for tag in self.soup.findAll('span'):
            self.create_italic(tag)
            self.create_strong(tag)
            self.create_underline(tag)
            self.unwrap_span(tag)

        for tag in self.soup.findAll('a'):
            self.remove_comments(tag)
            self.check_next(tag)

        if self.soup.body:
            for tag in self.soup.body.findAll():
                self.remove_empty(tag)
                self.remove_inline_comment(tag)
                self.parse_attrs(tag)
                for token, target in self.tokens:
                    self.find_token(tag, token, target)

                self.remove_blacklisted_tags(tag)
def parse(self):
        """
        Run all parsing functions.
        """
        for tag in self.soup.findAll('span'):
            self.create_italic(tag)
            self.create_strong(tag)
            self.create_underline(tag)
            self.unwrap_span(tag)

        for tag in self.soup.findAll('a'):
            self.remove_comments(tag)
            self.check_next(tag)

        if self.soup.body:
            for tag in self.soup.body.findAll():
                self.remove_empty(tag)
                self.remove_inline_comment(tag)
                self.parse_attrs(tag)
                for token, target in self.tokens:
                    self.find_token(tag, token, target)

                self.remove_blacklisted_tags(tag)
def parse ( self ) : for tag in self . soup . findAll ( 'span' ) : self . create_italic ( tag ) self . create_strong ( tag ) self . create_underline ( tag ) self . unwrap_span ( tag ) for tag in self . soup . findAll ( 'a' ) : self . remove_comments ( tag ) self . check_next ( tag ) if self . soup . body : for tag in self . soup . body . findAll ( ) : self . remove_empty ( tag ) self . remove_inline_comment ( tag ) self . parse_attrs ( tag ) for token , target in self . tokens : self . find_token ( tag , token , target ) self . remove_blacklisted_tags ( tag )
Run all parsing functions.
Run all parsing functions .