(self, listen)
Attach an :class:`txtorcon.interface.IStreamListener` to this stream.

        See also :meth:`txtorcon.TorState.add_stream_listener` to
        listen to all streams.

        :param listen: something that knows
            :class:`txtorcon.interface.IStreamListener`
Attach an :class:`txtorcon.interface.IStreamListener` to this stream.
Attach an : class : txtorcon . interface . IStreamListener to this stream .
def listen(self, listen):
        """
        Attach an :class:`txtorcon.interface.IStreamListener` to this stream.

        See also :meth:`txtorcon.TorState.add_stream_listener` to
        listen to all streams.

        :param listen: something that knows
            :class:`txtorcon.interface.IStreamListener`
        """

        listener = IStreamListener(listen)
        if listener not in self.listeners:
            self.listeners.append(listener)
def listen ( self , listen ) : listener = IStreamListener ( listen ) if listener not in self . listeners : self . listeners . append ( listener )