def putconn(self, close=False): try: conn = pool.getconn(self.dsn, False) except AttributeError: pass pool.putconn(self.dsn, conn, close)
def putconn(self, close=False): conn = pool.getconn(self.dsn, create_pool=False, init=self.init_conn) pool.putconn(self.dsn, conn, close)