#NEWLINE# def canHandleRequest( self , request ) : #NEWLINE# #INDENT# "Return **True** if this circuit can (probably/possibly) handle\n        the *request*.\n\n        If this circuit is pending we may not have a relay exit relay whose\n        exit policy we can check, so make a guess and return True if the\n        request is of the same type as this circuit. Always return True if\n        this request is a host type request (this is probably wrong). If the\n        circuit is open and we do have an exit policy to check, then return\n        whether or not this circuit's exit relay's exit policy claims to\n        support this request.\n\n        :param oppy.util.exitrequest.ExitRequest request: the request to\n            check if this circuit can handle\n        :returns: **bool** **True** if this circuit thinks it can handle\n            the request, False otherwise\n        " #NEWLINE# if ( self . _state == CState . BUFFERING ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( len ( self . _streams ) == self . _max_streams ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return self . _path . exit . microdescriptor . exit_policy . can_exit_to ( port = request . port )