

def db_connect(dsn=None, user=None, password=None, host=None, port=None, database=None, sslmode=None):
    ' Connect to database.\n    \n        Use DSN string if given, but allow other calls for older systems.\n    '
    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