fix: Remove unused imports in several modules #752

Removed unused imports in:
* terminator
* terminatorlib/plugins/dir_open.py
* terminatorlib/terminal.py
* terminatorlib/terminal_popup_menu.py
* terminatorlib/terminator.py
* tests/test_signalman.py
This commit is contained in:
nautics889 2024-01-26 20:20:19 +02:00
parent 6d5cd041b3
commit 6651b30fde
6 changed files with 2 additions and 8 deletions

View File

@ -21,8 +21,7 @@
import sys import sys
import os import os
import psutil
import pwd
try: try:
ORIGCWD = os.getcwd() ORIGCWD = os.getcwd()
except OSError: except OSError:

View File

@ -1,7 +1,5 @@
from gi.repository import Gtk from gi.repository import Gtk
from terminatorlib.config import Config
from terminatorlib.terminal import Terminal
from terminatorlib.translation import _ from terminatorlib.translation import _
import terminatorlib.plugin as plugin import terminatorlib.plugin as plugin

View File

@ -15,7 +15,7 @@ try:
except ImportError: except ImportError:
from urllib import unquote as urlunquote from urllib import unquote as urlunquote
from .util import dbg, err, spawn_new_terminator, make_uuid, manual_lookup, display_manager from .util import dbg, err, spawn_new_terminator, make_uuid, manual_lookup
from . import util from . import util
from .config import Config from .config import Config
from .cwd import get_pid_cwd from .cwd import get_pid_cwd

View File

@ -12,7 +12,6 @@ from .util import err, dbg, spawn_new_terminator
from .config import Config from .config import Config
from .prefseditor import PrefsEditor from .prefseditor import PrefsEditor
from . import plugin from . import plugin
from .layoutlauncher import LayoutLauncher
class TerminalPopupMenu(object): class TerminalPopupMenu(object):
"""Class implementing the Terminal context menu""" """Class implementing the Terminal context menu"""

View File

@ -17,7 +17,6 @@ from .config import Config
from .keybindings import Keybindings from .keybindings import Keybindings
from .util import dbg, err, enumerate_descendants from .util import dbg, err, enumerate_descendants
from .factory import Factory from .factory import Factory
from .version import APP_NAME, APP_VERSION
from .translation import _ from .translation import _
try: try:

View File

@ -30,7 +30,6 @@ False
""" """
import os
import sys, os.path import sys, os.path
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), ".."))) sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), "..")))