Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Remove unused imports
  • Loading branch information
oscargus committed Aug 10, 2022
commit 98082ee5e32fe11a0cbb78102c8514a23c256fa8
4 changes: 2 additions & 2 deletions lib/matplotlib/backends/backend_gtk4.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from matplotlib import _api, backend_tools, cbook
from matplotlib.backend_bases import (
FigureCanvasBase, ToolContainerBase,
CloseEvent, KeyEvent, LocationEvent, MouseEvent, ResizeEvent)
KeyEvent, LocationEvent, MouseEvent, ResizeEvent)

try:
import gi
Expand All @@ -22,7 +22,7 @@
# auto-backend selection logic correctly skips.
raise ImportError from e

from gi.repository import Gio, GLib, GObject, Gtk, Gdk, GdkPixbuf
from gi.repository import Gio, GLib, Gtk, Gdk, GdkPixbuf
from . import _backend_gtk
from ._backend_gtk import (
_BackendGTK, _FigureManagerGTK, _NavigationToolbar2GTK,
Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/backends/backend_pgf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import atexit
import codecs
import datetime
import functools
Expand Down
4 changes: 1 addition & 3 deletions lib/matplotlib/backends/backend_ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import functools
from io import StringIO
import logging
import math
import os
import pathlib
import re
Expand All @@ -22,8 +21,7 @@
from matplotlib import _api, cbook, _path, _text_helpers
from matplotlib._afm import AFM
from matplotlib.backend_bases import (
_Backend, FigureCanvasBase, FigureManagerBase, GraphicsContextBase,
RendererBase)
_Backend, FigureCanvasBase, FigureManagerBase, RendererBase)
from matplotlib.cbook import is_writable_file_like, file_requires_unicode
from matplotlib.font_manager import get_font
from matplotlib.ft2font import LOAD_NO_HINTING, LOAD_NO_SCALE, FT2Font
Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/backends/backend_qt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import functools
import operator
import os
import sys
import traceback
Expand Down