From a45ae10e114167172a14053e346396e0d448cf5e Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Mon, 13 Jan 2020 19:11:56 +0100 Subject: [PATCH] Deprecate the empty matplotlib.compat. If we ever need something like it again we'll likely make the compat shims private anyways... --- doc/api/next_api_changes/deprecations.rst | 4 ++++ lib/matplotlib/compat/__init__.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/doc/api/next_api_changes/deprecations.rst b/doc/api/next_api_changes/deprecations.rst index 98b556bf3fa4..15936c9bfe5d 100644 --- a/doc/api/next_api_changes/deprecations.rst +++ b/doc/api/next_api_changes/deprecations.rst @@ -169,3 +169,7 @@ The ``TTFPATH`` and ``AFMPATH`` environment variables Support for the (undocumented) ``TTFPATH`` and ``AFMPATH`` environment variables is deprecated. Additional fonts may be registered using ``matplotlib.font_manager.fontManager.addfont()``. + +``matplotlib.compat`` +~~~~~~~~~~~~~~~~~~~~~ +This module is deprecated. diff --git a/lib/matplotlib/compat/__init__.py b/lib/matplotlib/compat/__init__.py index e69de29bb2d1..447ceee45347 100644 --- a/lib/matplotlib/compat/__init__.py +++ b/lib/matplotlib/compat/__init__.py @@ -0,0 +1,4 @@ +from matplotlib import cbook + + +cbook.warn_deprecated("3.3", name=__name__, obj_type="module")