MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / __exit__

Method __exit__

pager_lib/tqdm/std.py:1138–1145  ·  view source on GitHub ↗
(self, exc_type, exc_value, traceback)

Source from the content-addressed store, hash-verified

1136 return self
1137
1138 def __exit__(self, exc_type, exc_value, traceback):
1139 try:
1140 self.close()
1141 except AttributeError:
1142 # maybe eager thread cleanup upon external error
1143 if (exc_type, exc_value, traceback) == (None, None, None):
1144 raise
1145 warn("AttributeError ignored", TqdmWarning, stacklevel=2)
1146
1147 def __del__(self):
1148 self.close()

Callers 1

closeMethod · 0.45

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected