From 58154f30dbd4d23454a5d1bda183ff50f8e2ea0e Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Fri, 16 Mar 2018 15:32:02 -0400 Subject: [PATCH] API: shift deprecation of TempCache class to 3.0 The changes to not use this were reverted on the 2.2.x branch. --- doc/api/next_api_changes/2018-02-15-AL-deprecations.rst | 1 + lib/matplotlib/font_manager.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/next_api_changes/2018-02-15-AL-deprecations.rst b/doc/api/next_api_changes/2018-02-15-AL-deprecations.rst index 2fce8789ed43..5fc9822d5ff7 100644 --- a/doc/api/next_api_changes/2018-02-15-AL-deprecations.rst +++ b/doc/api/next_api_changes/2018-02-15-AL-deprecations.rst @@ -15,6 +15,7 @@ The following classes, methods, and functions are deprecated: - ``container.Container.set_remove_method``, - ``mathtext.unichr_safe`` (use ``chr`` instead), - ``texmanager.dvipng_hack_alpha``, +- ``font_manager.TempCache``, The following rcParams are deprecated: - ``pgf.debug`` (the pgf backend relies on logging), diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py index c1afe3f12b49..02cbd9633fcd 100644 --- a/lib/matplotlib/font_manager.py +++ b/lib/matplotlib/font_manager.py @@ -926,7 +926,7 @@ def _normalize_font_family(family): return family -@cbook.deprecated("2.2") +@cbook.deprecated("3.0") class TempCache(object): """ A class to store temporary caches that are (a) not saved to disk