MCPcopy Index your code
hub / github.com/ELMERIKH/PyinMemoryPE / close

Method close

pythonmemorymodule/pefile.py:2788–2798  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2786 self.close()
2787
2788 def close(self):
2789 if (
2790 self.__from_file is True
2791 and hasattr(self, "__data__")
2792 and (
2793 (isinstance(mmap.mmap, type) and isinstance(self.__data__, mmap.mmap))
2794 or "mmap.mmap" in repr(type(self.__data__))
2795 )
2796 ):
2797 self.__data__.close()
2798 del self.__data__
2799
2800 def __unpack_data__(self, format, data, file_offset):
2801 """Apply structure format to raw data.

Callers 6

__init__Method · 0.95
__exit__Method · 0.95
__parse__Method · 0.45
writeMethod · 0.45
free_libraryMethod · 0.45
free_exeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected