#NEWLINE# def _close_internal( identity , msg ) : #NEWLINE# #INDENT# 'Send a kill signal to the greenlet specified by identity. Used for closing\n    connections on BPClose messages.\n\n    ' #NEWLINE# g = greenlet . get_identity_greenlet ( identity ) #NEWLINE# if ( identity is not None ) : #NEWLINE# #INDENT# g . kill ( timeout = 1 , block = True , exception = greenlet . BPGreenletExit )