def db_connect(dsn=None, user=None, password=None, host=None, port=None, database=None, sslmode=None):
    ''' Connect to database.
    
        Use DSN string if given, but allow other calls for older systems.
    '''
    if dsn is None:
        return connect(user=user, password=password, host=host, port=port, database=database, sslmode=sslmode)

    return connect(dsn)
dataset/ETHPy150Open openaddresses/machine/openaddr/ci/__init__.py/db_connect/original