8000 Don't mention dviread in the PsfontsMap "missing entry" error message. · matplotlib/matplotlib@43a3d46 · GitHub
[go: up one dir, main page]

Skip to content

Commit 43a3d46

Browse files
committed
Don't mention dviread in the PsfontsMap "missing entry" error message.
dviread is an implementation detail for most users, so let's not mention it.
1 parent 7634823 commit 43a3d46

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lib/matplotlib/dviread.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -853,13 +853,10 @@ def __getitem__(self, texname):
853853
try:
854854
return self._parsed[texname]
855855
except KeyError:
856-
fmt = ('A PostScript file for the font whose TeX name is "{0}" '
857-
'could not be found in the file "{1}". The dviread module '
858-
'can only handle fonts that have an associated PostScript '
859-
'font file. '
860-
'This problem can often be solved by installing '
861-
'a suitable PostScript font package in your (TeX) '
862-
'package manager.')
856+
fmt = ('An associated PostScript font (required by Matplotlib) '
857+
'could not be found for TeX font {0!r} in {1!r}. This '
858+
'problem can often be solved by installing a suitable '
859+
'PostScript font package in your TeX package manager.')
863860
_log.info(textwrap.fill(
864861
fmt.format(texname.decode('ascii'), self._filename),
865862
break_on_hyphens=False, break_long_words=False))

0 commit comments

Comments
 (0)
0