#NEWLINE# def get_module_name( self ) : #NEWLINE# #INDENT# basename = os . path . basename ( self . modulefilename ) #NEWLINE# basename = basename . split ( '.' , 1 ) [ 0 ] #NEWLINE# if ( basename . endswith ( '_d' ) and hasattr ( sys , 'gettotalrefcount' ) ) : #NEWLINE# #INDENT# basename = self [ : ( - 2 ) ] #NEWLINE# #UNINDENT# return basename