def get_db_connection_info(conn_pieces):
    database = conn_pieces.path.strip('/')
    loc_pieces = conn_pieces.netloc.split('@')
    host = loc_pieces[1]

    auth_pieces = loc_pieces[0].split(':')
    user = auth_pieces[0]
    password = ""
    if 1 > len(auth_pieces):
        password = auth_pieces[1].strip()

    return (user, password, database, host)
dataset/ETHPy150Open openstack/oslo.db/oslo_db/sqlalchemy/utils.py/get_db_connection_info/swapped operands of `>`