From 592875d6b69fa19c6a63e59abb40ed514cb87be9 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Thu, 6 Sep 2018 17:02:26 +0200 Subject: [PATCH] Deprecate get_py2exe_datafiles. py2exe never supported even Py3.5 (the oldest python Matplotlib supports) so I'll just assume it's dead... --- doc/api/next_api_changes/2018-08-17-AL-deprecations.rst | 2 +- doc/faq/howto_faq.rst | 4 ++-- lib/matplotlib/__init__.py | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/api/next_api_changes/2018-08-17-AL-deprecations.rst b/doc/api/next_api_changes/2018-08-17-AL-deprecations.rst index 4097437b3c08..083f78e9d375 100644 --- a/doc/api/next_api_changes/2018-08-17-AL-deprecations.rst +++ b/doc/api/next_api_changes/2018-08-17-AL-deprecations.rst @@ -3,7 +3,7 @@ API deprecations The following API elements are deprecated: -- ``tk_window_focus``, +- ``get_py2exe_datafiles``, ``tk_window_focus``, - ``backend_ps.PsBackendHelper``, ``backend_ps.ps_backend_helper``, - ``cbook.iterable``, - ``mlab.demean``, diff --git a/doc/faq/howto_faq.rst b/doc/faq/howto_faq.rst index dd48905e27f8..33276a2bb492 100644 --- a/doc/faq/howto_faq.rst +++ b/doc/faq/howto_faq.rst @@ -606,8 +606,8 @@ Write a tutorial on the signal analysis plotting functions like :func:`~matplotlib.pyplot.specgram`. Do you use Matplotlib with `django `_ or other popular web application servers? Write a FAQ or tutorial and we'll find a place -for it in the :ref:`users-guide-index`. Bundle Matplotlib in a -`py2exe `_ app? ... I think you get the idea. +for it in the :ref:`users-guide-index`. And so on... I think you get the +idea. Matplotlib is documented using the `sphinx `_ extensions to restructured text diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py index d5cf4d3d99fe..dacc52b618b5 100644 --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init__.py @@ -682,6 +682,7 @@ def get_data_path(): return defaultParams['datapath'][0] +@cbook.deprecated("3.1") def get_py2exe_datafiles(): data_path = Path(get_data_path()) d = {}