MCPcopy Create free account
hub / github.com/OpenGVLab/DragGAN / close

Method close

draggan/stylegan2/training/dataset.py:202–207  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 return None
201
202 def close(self):
203 try:
204 if self._zipfile is not None:
205 self._zipfile.close()
206 finally:
207 self._zipfile = None
208
209 def __getstate__(self):
210 return dict(super().__getstate__(), _zipfile=None)

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected