def _parse_site(self, site):
        proto, host, path, query, fragment = urlparse.urlsplit(site)
        auth_info, host = urllib2.splituser(host)
        if not auth_info:
            user, password = None, None
        else:
            user, password = urllib2.splitpasswd(auth_info)

        new_site = urlparse.urlunparse((proto, host, '', '', '', ''))
        return (new_site, user, password)
Tests setting a valid ACL on an object.
dataset/ETHPy150Open JetBrains/youtrack-rest-python-library/python/pyactiveresource/connection.py/Connection._parse_site--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/test_acl.py/TestAcl.test_set_valid_acl_object