8000 Fix deprecated attribute name in backend_pdf. · matplotlib/matplotlib@c201308 · GitHub
[go: up one dir, main page]

Skip to content

Commit c201308

Browse files
committed
Fix deprecated attribute name in backend_pdf.
The attribute was called dviFontInfo (now with a leading underscore), not dviFontNames.
1 parent f4346b5 commit c201308

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
``PdfFile.fontNames``, ``PdfFile.dviFontNames``, ``PdfFile.type1Descriptors``
2-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1+
``PdfFile.fontNames``, ``PdfFile.dviFontInfo``, ``PdfFile.type1Descriptors``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33
... are deprecated with no replacement.

lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ def __init__(self, filename, metadata=None):
766766
self.writeObject(self.resourceObject, resources)
767767

768768
fontNames = _api.deprecated("3.11")(property(lambda self: self._fontNames))
769-
dviFontNames = _api.deprecated("3.11")(property(lambda self: self._dviFontNames))
769+
dviFontInfo = _api.deprecated("3.11")(property(lambda self: self._dviFontInfo))
770770
type1Descriptors = _api.deprecated("3.11")(
771771
property(lambda self: self._type1Descriptors))
772772

0 commit comments

Comments
 (0)
0