Merge pull request #753 from nautics889/issue-752-remove-unused-imports

fix: Remove unused imports in several modules #752
This commit is contained in:
Matt Rose 2024-02-05 09:48:28 -05:00 committed by GitHub
commit e9ef0745af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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__), "..")))