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

Method __getitem__

lib/matplotlib/dviread.py:1116–1129  ·  view source on GitHub ↗
(self, texname)

Source from the content-addressed store, hash-verified

1114 return self
1115
1116 def __getitem__(self, texname):
1117 assert isinstance(texname, bytes)
1118 if texname in self._unparsed:
1119 for line in self._unparsed.pop(texname):
1120 if self._parse_and_cache_line(line):
1121 break
1122 try:
1123 return self._parsed[texname]
1124 except KeyError:
1125 raise LookupError(
1126 f"The font map {self._filename!r} is missing a PostScript font "
1127 f"associated to TeX font {texname.decode('ascii')!r}; this problem can "
1128 f"often be solved by installing a suitable PostScript font package in "
1129 f"your TeX package manager") from None
1130
1131 def _parse_and_cache_line(self, line):
1132 """

Callers

nothing calls this directly

Calls 2

_parse_and_cache_lineMethod · 0.95
popMethod · 0.45

Tested by

no test coverage detected