Skip to content

Commit

Permalink
fix: Remove unused imports in several modules gnome-terminator#752
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nautics889 committed Jan 26, 2024
1 parent 6d5cd04 commit 6651b30
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions terminator
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@

import sys
import os
import psutil
import pwd

try:
ORIGCWD = os.getcwd()
except OSError:
Expand Down
2 changes: 0 additions & 2 deletions terminatorlib/plugins/dir_open.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from gi.repository import Gtk

from terminatorlib.config import Config
from terminatorlib.terminal import Terminal
from terminatorlib.translation import _
import terminatorlib.plugin as plugin

Expand Down
2 changes: 1 addition & 1 deletion terminatorlib/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
except ImportError:
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 .config import Config
from .cwd import get_pid_cwd
Expand Down
1 change: 0 additions & 1 deletion terminatorlib/terminal_popup_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from .config import Config
from .prefseditor import PrefsEditor
from . import plugin
from .layoutlauncher import LayoutLauncher

class TerminalPopupMenu(object):
"""Class implementing the Terminal context menu"""
Expand Down
1 change: 0 additions & 1 deletion terminatorlib/terminator.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from .keybindings import Keybindings
from .util import dbg, err, enumerate_descendants
from .factory import Factory
from .version import APP_NAME, APP_VERSION
from .translation import _

try:
Expand Down
1 change: 0 additions & 1 deletion tests/test_signalman.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"""

import os
import sys, os.path
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), "..")))

Expand Down

0 comments on commit 6651b30

Please sign in to comment.