#NEWLINE# def getModuleScopeChain( self , target ) : #NEWLINE# #INDENT# remove_cnt = 0 #NEWLINE# length = len ( target ) #NEWLINE# for scope in reversed ( target ) : #NEWLINE# #INDENT# if ( scope . scopetype == 'module' ) : #NEWLINE# #INDENT# return target [ : ( length - remove_cnt ) ] #NEWLINE# #UNINDENT# remove_cnt += 1 #NEWLINE# #UNINDENT# raise verror . DefinitionError ( 'module not found' )