From a20381a8eee72165908f868cbb05ab5f3cbb4d1b Mon Sep 17 00:00:00 2001 From: richardsheridan Date: Wed, 24 Feb 2021 14:40:06 -0500 Subject: [PATCH] Use public get_data_path for matplotlib hook (#5568) Private _get_data_path was removed in matplotlib-3.4.0rc1. This change simply removes the underscore to use the public version. (#5567) --- PyInstaller/hooks/hook-matplotlib.py | 2 +- news/5568.bugfix.rst | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 news/5568.bugfix.rst diff --git a/PyInstaller/hooks/hook-matplotlib.py b/PyInstaller/hooks/hook-matplotlib.py index e13209bcc3..33a292031b 100644 --- a/PyInstaller/hooks/hook-matplotlib.py +++ b/PyInstaller/hooks/hook-matplotlib.py @@ -13,7 +13,7 @@ from PyInstaller.utils.hooks import exec_statement mpl_data_dir = exec_statement( - "import matplotlib; print(matplotlib._get_data_path())") + "import matplotlib; print(matplotlib.get_data_path())") datas = [ (mpl_data_dir, "matplotlib/mpl-data"), diff --git a/news/5568.bugfix.rst b/news/5568.bugfix.rst new file mode 100644 index 0000000000..e18a44e3fd --- /dev/null +++ b/news/5568.bugfix.rst @@ -0,0 +1,3 @@ +Remove dependence on a `private function +`_ +removed in ``matplotlib`` 3.4.0rc1.