#NEWLINE# def clean_article_tags( self , doc ) : #NEWLINE# #INDENT# articles = self . parser . getElementsByTag ( doc , tag = 'article' ) #NEWLINE# for article in articles : #NEWLINE# #INDENT# for attr in [ 'id' , 'name' , 'class' ] : #NEWLINE# #INDENT# self . parser . delAttribute ( article , attr = attr ) #NEWLINE# #UNINDENT# #UNINDENT# return doc