#NEWLINE# def go( self ) : #NEWLINE# #INDENT# soup = BeautifulSoup . BeautifulSoup ( self . source , convertEntities = BeautifulSoup . BeautifulSoup . HTML_ENTITIES , fromEncoding = self . encoding , smartQuotesTo = None ) #NEWLINE# soup = self . format ( soup ) #NEWLINE# doc = document . Document ( ) #NEWLINE# if doc . css_source : #NEWLINE# #INDENT# self . css = CSS ( self . css_source ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . css = CSS ( ) #NEWLINE# #UNINDENT# self . process_into ( soup , doc ) #NEWLINE# return doc