def __repr__(self):
        if self._realPortNumber is not None:
            return "<%s of %s on %s>" % (self.__class__,
                self.factory.__class__, self._realPortNumber)
        else:
            return "<%s of %s (not listening)>" % (self.__class__, self.factory.__class__)
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/tcp.py/Port.__repr__/original