#NEWLINE# def addnodes( self ) : #NEWLINE# #INDENT# ' Add PyCoreNode objects as node XML elements.\n        ' #NEWLINE# with self . session . _objslock : #NEWLINE# #INDENT# for node in self . session . objs ( ) : #NEWLINE# #INDENT# if ( not isinstance ( self , nodes . PyCoreNode ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# self . addnode ( node )