Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT : delete unused Image #3765

Merged
merged 1 commit into from Nov 7, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/api/api_changes/2014-11-07_remove_IMAGE.rst
@@ -0,0 +1,5 @@
Removed `Image` from main namespace
```````````````````````````````````

`Image` was imported from PIL/pillow to test if PIL is available, but there is no
reason to keep `Image` in the namespace once the availability has been determined.
1 change: 1 addition & 0 deletions lib/matplotlib/backend_bases.py
Expand Up @@ -68,6 +68,7 @@ def import_module(name):
try:
from PIL import Image
_has_pil = True
del Image
except ImportError:
_has_pil = False

Expand Down