MCPcopy
hub / github.com/django/django / close

Method close

django/http/multipartparser.py:491–498  ·  view source on GitHub ↗

Used to invalidate/disable this lazy stream. Replace the producer with an empty list. Any leftover bytes that have already been read will still be reported upon read() and/or next().

(self)

Source from the content-addressed store, hash-verified

489 return output
490
491 def close(self):
492 """
493 Used to invalidate/disable this lazy stream.
494
495 Replace the producer with an empty list. Any leftover bytes that have
496 already been read will still be reported upon read() and/or next().
497 """
498 self._producer = []
499
500 def __iter__(self):
501 return self

Callers 2

parseMethod · 0.45
_close_filesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected