def netloc(self):
        """Network location including host and port"""
        if self.port:
            return "%s:%d" % (self.host, self.port)
        return self.host
Network location including host and port
product/gradle-plugin/src/main/python/pip/_vendor/urllib3/util/url.py