def close(self): """Delete any held correlation_ids, and then close the context. Any future calls to object will result in an Error. """ for id in self.correlation_ids(): self.delete(id) # make it work with both 2 and 3 as InferContext does not # inherit from object, so super in broken in 2. InferContext.close(self)
def close(self): self.cidmgr.delete(self.correlation_id()) # make it work with both 2 and 3 as InferContext does not # inherit from object, so super in broken in 2. InferContext.close(self)