#NEWLINE# def clean_body_classes( self , doc ) : #NEWLINE# #INDENT# 'Removes the `class` attribute from the <body> tag because\n        if there is a bad match, the entire DOM will be empty!\n        ' #NEWLINE# elements = self . parser . getElementsByTag ( self , tag = 'body' ) #NEWLINE# if elements : #NEWLINE# #INDENT# self . parser . delAttribute ( elements [ 0 ] , attr = 'class' ) #NEWLINE# #UNINDENT# return doc