8000 PEP8 : re-order imports · matplotlib/matplotlib@99e60f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 99e60f3

Browse files
committed
PEP8 : re-order imports
1 parent a8b1f4f commit 99e60f3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lib/matplotlib/backends/qt4_compat.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import warnings
22
from matplotlib.cbook import mplDeprecation
3+
# bulk-imports because we are pretending that file is this file
4+
from .qt_compat import *
35
_warn_str = ("This module has been deprecated in 1.4 in favor "
46
"of matplotlib.backends.qt_compat\n"
57
"This module will be removed in 1.5, please update "
68
"your imports.")
7-
# bulk-imports because we are pretending that file is this file
8-
from .qt_compat import *
9-
109

1110
warnings.warn(_warn_str, mplDeprecation)

lib/matplotlib/backends/qt_editor/formsubplottool.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
backend.qt4 (PyQt4|PySide) independent form of the subplot tool.
66
77
"""
8+
from matplotlib.backends.qt_compat import QtCore, QtGui, QtWidgets
89

910
__author__ = 'rudolf.hoefler@gmail.com'
1011

11-
from matplotlib.backends.qt_compat import QtCore, QtGui, QtWidgets
12-
1312

1413
class UiSubplotTool(QtWidgets.QDialog):
1514

0 commit comments

Comments
 (0)
0