#NEWLINE# def getsingletonclass( self , space ) : #NEWLINE# #INDENT# w_cls = jit . promote ( self . map ) . find ( mapdict . ClassNode ) . getclass ( ) #NEWLINE# if w_cls . is_singleton : #NEWLINE# #INDENT# return self #NEWLINE# #UNINDENT# w_cls = space . newclass ( w_cls . name , w_cls , is_singleton = True , attached = self ) #NEWLINE# self . map = self . map . change_class ( space , w_cls ) #NEWLINE# return w_cls