#NEWLINE# @ tornado . gen . coroutine #NEWLINE# def delete( self , ctx , loctx ) : #NEWLINE# #INDENT# key = self . key #NEWLINE# if ( ( key == '_' ) or two . symbols . is_immutable_symbol ( key ) ) : #NEWLINE# #INDENT# raise Exception ( ( 'Cannot delete keyword "%s"' % ( key , ) ) ) #NEWLINE# #UNINDENT# locals = ctx . frame . locals #NEWLINE# if ( ( key in locals ) or key . startswith ( '_' ) ) : #NEWLINE# #INDENT# if ( key in locals ) : #NEWLINE# #INDENT# del locals [ key ] #NEWLINE# return #NEWLINE# #UNINDENT# raise NameError ( ( 'Temporary variable "%s" is not found' % ( key , ) ) ) #NEWLINE# #UNINDENT# if ( ctx . level != LEVEL_EXECUTE ) : #NEWLINE# #INDENT# raise Exception ( ( 'Properties may only be deleted in action code (prop "%s")' % ( key , ) ) ) #NEWLINE# #UNINDENT# iid = loctx . iid #NEWLINE# locid = loctx . locid #NEWLINE# app = ctx . app #NEWLINE# tup = ( 'instanceprop' , iid , locid , key ) #NEWLINE# ( yield app . propcache . delete ( tup ) ) #NEWLINE# ctx . task . changeset . add ( tup )