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

Skip to content

Commit 46391b5

Browse files
committed
Remove unused imports
1 parent 535c953 commit 46391b5

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

lib/matplotlib/backends/backend_gtk4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from matplotlib import _api, backend_tools, cbook
77
from matplotlib.backend_bases import (
88
FigureCanvasBase, ToolContainerBase,
9-
CloseEvent, KeyEvent, LocationEvent, MouseEvent, ResizeEvent)
9+
KeyEvent, LocationEvent, MouseEvent, ResizeEvent)
1010

1111
try:
1212
import gi
@@ -22,7 +22,7 @@
2222
# auto-backend selection logic correctly skips.
2323
raise ImportError from e
2424

25-
from gi.repository import Gio, GLib, GObject, Gtk, Gdk, GdkPixbuf
25+
from gi.repository import Gio, GLib, Gtk, Gdk, GdkPixbuf
2626
from . import _backend_gtk
2727
from ._backend_gtk import (
2828
_BackendGTK, _FigureManagerGTK, _NavigationToolbar2GTK,

lib/matplotlib/backends/backend_pgf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import atexit
21
import codecs
32
import datetime
43
import functools

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import functools
99
from io import StringIO
1010
import logging
11-
import math
1211
import os
1312
import pathlib
1413
import re
@@ -22,8 +21,7 @@
2221
from matplotlib import _api, cbook, _path, _text_helpers
2322
from matplotlib._afm import AFM
2423
from matplotlib.backend_bases import (
25-
_Backend, FigureCanvasBase, FigureManagerBase, GraphicsContextBase,
26-
RendererBase)
24+
_Backend, FigureCanvasBase, FigureManagerBase, RendererBase)
2725
from matplotlib.cbook import is_writable_file_like, file_requires_unicode
2826
from matplotlib.font_manager import get_font
2927
from matplotlib.ft2font import LOAD_NO_HINTING, LOAD_NO_SCALE, FT2Font

lib/matplotlib/backends/backend_qt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import functools
2-
import operator
32
import os
43
import sys
54
import traceback

0 commit comments

Comments
 (0)