MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _ensure_file

Method _ensure_file

lib/matplotlib/backends/backend_pdf.py:2655–2658  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2653 self.close()
2654
2655 def _ensure_file(self):
2656 if self._file is None:
2657 self._file = PdfFile(self._filename, metadata=self._metadata) # init.
2658 return self._file
2659
2660 def close(self):
2661 """

Callers 4

infodictMethod · 0.95
get_pagecountMethod · 0.95
attach_noteMethod · 0.95
print_pdfMethod · 0.80

Calls 1

PdfFileClass · 0.85

Tested by

no test coverage detected