

def _is_closed(self, key, conn):
    closed = super(_PooledPostgresqlDatabase, self)._is_closed(key, conn)
    if (not closed):
        closed = bool(conn.closed)
    return closed

dataset/ETHPy150Open coleifer/peewee/playhouse/pool.py _PooledPostgresqlDatabase._is_closed/original