(uri)
Assert that there is no password present in the uri.
Assert that there is no password present in the uri.
Assert that there is no password present in the uri .
def check_password(uri):
    """Assert that there is no password present in the uri."""
    userinfo = uri.userinfo
    if not userinfo:
        return
    credentials = userinfo.split(':', 1)
    if len(credentials) <= 1:
        return
    raise exceptions.PasswordForbidden(uri)
def check_password ( uri ) : userinfo = uri . userinfo if not userinfo : return credentials = userinfo . split ( ':' , 1 ) if len ( credentials ) <= 1 : return raise exceptions . PasswordForbidden ( uri )