8000 Remove some unused imports by timhoffm · Pull Request #12574 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Remove some unused imports #12574

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

Merged
merged 1 commit into from
Oct 20, 2018
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/matplotlib/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from matplotlib.cbook import _string_to_bool
import matplotlib.font_manager as font_manager
import matplotlib.lines as mlines
import matplotlib.patches as mpatches
import matplotlib.scale as mscale
import matplotlib.text as mtext
import matplotlib.ticker as mticker
Expand Down
3 changes: 1 addition & 2 deletions lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@
from matplotlib.path import Path

try:
from PIL import Image
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just a test import to find out if PIL is available. Superseeded by importing PILLOW_VERSION.

from PIL import PILLOW_VERSION
from distutils.version import LooseVersion
if LooseVersion(PILLOW_VERSION) >= "3.4":
_has_pil = True
else:
_has_pil = False
del Image
del PILLOW_VERSION
except ImportError:
_has_pil = False

Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/backends/backend_qt5.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
TimerBase, cursors, ToolContainerBase, StatusbarBase)
import matplotlib.backends.qt_editor.figureoptions as figureoptions
from matplotlib.backends.qt_editor.formsubplottool import UiSubplotTool
from matplotlib.figure import Figure
from matplotlib.backend_managers import ToolManager

from .qt_compat import (
Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/cbook/deprecation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import functools
import inspect
import warnings


class MatplotlibDeprecationWarning(UserWarning):
Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/dviread.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import os
import re
import struct
import subprocess
import textwrap

import numpy as np
Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/mlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@

import matplotlib.cbook as cbook
from matplotlib import docstring
import math


def window_hanning(x):
Expand Down
1 change: 0 additions & 1 deletion lib/mpl_toolkits/axisartist/axislines.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
import matplotlib.artist as martist
import matplotlib.axes as maxes
from matplotlib.path import Path
from matplotlib.transforms import Bbox
from .axisline_style import AxislineStyle
from .axis_artist import AxisArtist, GridlinesCollection

Expand Down
0