MCPcopy Create free account
hub / github.com/numpy/numpy / __exit__

Method __exit__

setup.py:172–175  ·  view source on GitHub ↗

Restore content of both files

(self, exception_type, exception_value, traceback)

Source from the content-addressed store, hash-verified

170 f1.write(self.bundled_text)
171
172 def __exit__(self, exception_type, exception_value, traceback):
173 """Restore content of both files"""
174 with open(self.f1, 'w') as f:
175 f.write(self.bsd_text)
176
177# Need to inherit from versioneer version of sdist to get the encoded
178# version information.

Callers

nothing calls this directly

Calls 2

openFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected