def domainAddress(self):
        """ Return an Address object which is the same as this one with ONLY the
        'domain' attribute set, not 'resource'.

        May return 'self' if 'resource' is already None.
        """
        if self.resource is None:
            return self
        else:
            return Q2QAddress(self.domain)
dataset/ETHPy150Open twisted/vertex/vertex/q2q.py/Q2QAddress.domainAddress/original