MCPcopy
hub / github.com/django/django / __del__

Method __del__

django/contrib/gis/geoip2.py:122–125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120 raise GeoIP2Exception(f"Unable to handle database edition: {database_type}")
121
122 def __del__(self):
123 # Cleanup any GeoIP file handles lying around.
124 if self._reader:
125 self._reader.close()
126
127 def __repr__(self):
128 m = self._metadata

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected