Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9bb8e6c

Browse files
authored
Merge pull request #16086 from tacaswell/fix_pil_versioncheck
FIX: use supported attribute to check pillow version
2 parents 8b014ea + 3369e3b commit 9bb8e6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)