def __repr__(self):
        peer = self.stream and self.stream.socket and self.stream.socket.getpeername()
        return '<%s %r>' % (type(self).__name__, peer)
dataset/ETHPy150Open HenryHu/pybbs/xmpp/core.py/Core.__repr__/original