8000 Backport PR #16086: FIX: use supported attribute to check pillow version · matplotlib/matplotlib@5f61067 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f61067

Browse files
timhoffmmeeseeksmachine
authored andcommitted
Backport PR #16086: FIX: use supported attribute to check pillow version
1 parent fd7007b commit 5f61067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
from matplotlib.path import Path
5555

5656
try:
57-
from PIL import PILLOW_VERSION
57+
from PIL import __version__ as PILLOW_VERSION
5858
from distutils.version import LooseVersion
5959
if LooseVersion(PILLOW_VERSION) >= "3.4":
6060
_has_pil = True

0 commit comments

Comments
 (0)
0