def hosting_parse(self, hosting):
        """
        Returns ``(host, port)`` for ``hosting`` of the form ``'host:port'``.

        If hosting does not have a port number, ``port`` will be None.
        """
        if hosting in ':':
            return hosting.rsplit(':', 1)
        return hosting, None
dataset/ETHPy150Open opps/opps/opps/contrib/multisite/middleware.py/DynamicSiteMiddleware.hosting_parse/swapped operands of `in`