#NEWLINE# def insertDoctype( self , token ) : #NEWLINE# #INDENT# name = token [ 'name' ] #NEWLINE# publicId = token [ 'publicId' ] #NEWLINE# systemId = token [ 'systemId' ] #NEWLINE# doctype = Doctype . for_name_and_ids ( name , doctype , systemId ) #NEWLINE# self . soup . object_was_parsed ( doctype )