_text(u'http://user:pass@localhost:8080/a/b?x=y') >>> url.authority() u'user:@localhost:8080' >>> url.authority(with_password=True) u'user:pass@localhost:8080' Args: with_password (bool): Whether the return value of this method include the password in the URL, if it is set. Defaults to False. Returns: str: The authority (network location and user information) portion of the URL. ÚincludeSecretsz$got unexpected keyword arguments: %rr7