Remove unused imports
This commit is contained in:
parent
6f55cf3dd4
commit
99b3aebc99
|
@ -31,7 +31,6 @@ import os
|
||||||
import time
|
import time
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
from gi.repository import Gio
|
from gi.repository import Gio
|
||||||
from gi.repository import GdkPixbuf
|
|
||||||
from gi.repository import Pango
|
from gi.repository import Pango
|
||||||
from gi.repository import GLib
|
from gi.repository import GLib
|
||||||
from gajim import gtkgui_helpers
|
from gajim import gtkgui_helpers
|
||||||
|
|
|
@ -36,7 +36,6 @@ from gi.repository import GLib
|
||||||
from gi.repository import Gio
|
from gi.repository import Gio
|
||||||
|
|
||||||
from gajim import gtkgui_helpers
|
from gajim import gtkgui_helpers
|
||||||
from gajim.gtkgui_helpers import Color
|
|
||||||
from gajim import message_control
|
from gajim import message_control
|
||||||
from gajim import dialogs
|
from gajim import dialogs
|
||||||
from gajim import history_window
|
from gajim import history_window
|
||||||
|
|
|
@ -38,9 +38,8 @@ from gajim.common import helpers
|
||||||
from gajim.common import app
|
from gajim.common import app
|
||||||
from gajim.common import i18n
|
from gajim.common import i18n
|
||||||
from gajim.common import dataforms
|
from gajim.common import dataforms
|
||||||
from gajim.common import exceptions
|
|
||||||
from gajim.common.zeroconf.zeroconf import Constant
|
from gajim.common.zeroconf.zeroconf import Constant
|
||||||
from gajim.common.logger import LOG_DB_PATH, KindConstant
|
from gajim.common.logger import KindConstant
|
||||||
from gajim.common.pep import SUPPORTED_PERSONAL_USER_EVENTS
|
from gajim.common.pep import SUPPORTED_PERSONAL_USER_EVENTS
|
||||||
from gajim.common.jingle_transport import JingleTransportSocks5
|
from gajim.common.jingle_transport import JingleTransportSocks5
|
||||||
from gajim.common.file_props import FilesProp
|
from gajim.common.file_props import FilesProp
|
||||||
|
|
|
@ -27,8 +27,6 @@
|
||||||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
||||||
##
|
##
|
||||||
|
|
||||||
from threading import Timer # for smooth scrolling
|
|
||||||
|
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
from gi.repository import Gdk
|
from gi.repository import Gdk
|
||||||
from gi.repository import Pango
|
from gi.repository import Pango
|
||||||
|
|
|
@ -61,7 +61,6 @@ from gajim import gui_menu_builder
|
||||||
|
|
||||||
from gajim.common import app
|
from gajim.common import app
|
||||||
import nbxmpp
|
import nbxmpp
|
||||||
from gajim.common.exceptions import GajimGeneralException
|
|
||||||
from gajim.common import helpers
|
from gajim.common import helpers
|
||||||
from gajim.common import ged
|
from gajim.common import ged
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import logging
|
import logging
|
||||||
import importlib.util as imp
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from importlib.machinery import SourceFileLoader
|
from importlib.machinery import SourceFileLoader
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,6 @@ from gi.repository import GLib, Gio, Gtk
|
||||||
|
|
||||||
from gajim.common import i18n
|
from gajim.common import i18n
|
||||||
from gajim.common import logging_helpers
|
from gajim.common import logging_helpers
|
||||||
from gajim.common import crypto
|
|
||||||
|
|
||||||
MIN_NBXMPP_VER = "0.6.4"
|
MIN_NBXMPP_VER = "0.6.4"
|
||||||
MIN_GTK_VER = "3.20.0"
|
MIN_GTK_VER = "3.20.0"
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import locale
|
import locale
|
||||||
import urllib
|
|
||||||
import signal
|
import signal
|
||||||
signal.signal(signal.SIGINT, signal.SIG_DFL) # ^C exits the application
|
signal.signal(signal.SIGINT, signal.SIG_DFL) # ^C exits the application
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ from gajim import message_control
|
||||||
from gajim.common import app
|
from gajim.common import app
|
||||||
from gajim.common import helpers
|
from gajim.common import helpers
|
||||||
from gajim.common import i18n
|
from gajim.common import i18n
|
||||||
from nbxmpp.protocol import NS_COMMANDS, NS_FILE, NS_MUC, NS_ESESSION
|
from nbxmpp.protocol import NS_COMMANDS, NS_FILE, NS_MUC
|
||||||
from nbxmpp.protocol import NS_JINGLE_FILE_TRANSFER_5, NS_CONFERENCE
|
from nbxmpp.protocol import NS_JINGLE_FILE_TRANSFER_5, NS_CONFERENCE
|
||||||
from gajim.gtkgui_helpers import get_action
|
from gajim.gtkgui_helpers import get_action
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,6 @@ import logging
|
||||||
from enum import IntEnum
|
from enum import IntEnum
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
import nbxmpp
|
|
||||||
from gi.repository import Gtk, GLib
|
from gi.repository import Gtk, GLib
|
||||||
|
|
||||||
from gajim.common import app
|
from gajim.common import app
|
||||||
|
|
|
@ -29,7 +29,6 @@ from gi.repository import Gtk
|
||||||
from gi.repository import Gdk
|
from gi.repository import Gdk
|
||||||
from gi.repository import GLib
|
from gi.repository import GLib
|
||||||
import time
|
import time
|
||||||
import calendar
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from enum import IntEnum, unique
|
from enum import IntEnum, unique
|
||||||
|
|
|
@ -36,7 +36,6 @@ modular.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from gi.repository import GObject
|
from gi.repository import GObject
|
||||||
from gi.repository import GLib
|
|
||||||
from gi.repository import Pango
|
from gi.repository import Pango
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
from gi.repository import Gdk
|
from gi.repository import Gdk
|
||||||
|
@ -55,10 +54,8 @@ from gajim.common import app
|
||||||
from gajim import gtkgui_helpers
|
from gajim import gtkgui_helpers
|
||||||
from gajim.gtkgui_helpers import get_icon_pixmap
|
from gajim.gtkgui_helpers import get_icon_pixmap
|
||||||
from gajim.common import helpers
|
from gajim.common import helpers
|
||||||
from gajim.common.exceptions import GajimGeneralException
|
|
||||||
from gajim import dialogs
|
from gajim import dialogs
|
||||||
|
|
||||||
from gajim import tooltips
|
|
||||||
import logging
|
import logging
|
||||||
log = logging.getLogger('gajim.htmlview')
|
log = logging.getLogger('gajim.htmlview')
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@ import time
|
||||||
|
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
from gi.repository import Gdk
|
from gi.repository import Gdk
|
||||||
from gi.repository import GdkPixbuf
|
|
||||||
from gi.repository import GObject
|
from gi.repository import GObject
|
||||||
from gi.repository import GLib
|
from gi.repository import GLib
|
||||||
|
|
||||||
|
|
|
@ -27,15 +27,13 @@
|
||||||
##
|
##
|
||||||
|
|
||||||
from gi.repository import GLib
|
from gi.repository import GLib
|
||||||
from gi.repository import Gtk
|
|
||||||
import os
|
import os
|
||||||
import base64
|
import base64
|
||||||
import mimetypes
|
import mimetypes
|
||||||
|
|
||||||
from gajim.common import app
|
from gajim.common import app
|
||||||
from gajim.common import helpers
|
from gajim.common import helpers
|
||||||
from time import time
|
from gajim.dialogs import AddNewContactWindow
|
||||||
from gajim.dialogs import AddNewContactWindow, JoinGroupchatWindow
|
|
||||||
from gajim.common import ged
|
from gajim.common import ged
|
||||||
from gajim.common.connection_handlers_events import MessageOutgoingEvent
|
from gajim.common.connection_handlers_events import MessageOutgoingEvent
|
||||||
from gajim.common.connection_handlers_events import GcMessageOutgoingEvent
|
from gajim.common.connection_handlers_events import GcMessageOutgoingEvent
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from gi.repository import Gio, GLib
|
from gi.repository import Gio
|
||||||
|
|
||||||
from gajim.common import app
|
from gajim.common import app
|
||||||
|
|
||||||
|
|
|
@ -21,10 +21,7 @@
|
||||||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
||||||
##
|
##
|
||||||
|
|
||||||
import nbxmpp
|
|
||||||
|
|
||||||
from gajim.common import helpers
|
from gajim.common import helpers
|
||||||
|
|
||||||
from gajim.common import events
|
from gajim.common import events
|
||||||
from gajim.common import exceptions
|
from gajim.common import exceptions
|
||||||
from gajim.common import app
|
from gajim.common import app
|
||||||
|
@ -34,11 +31,8 @@ from gajim.common import ged
|
||||||
from gajim.common.connection_handlers_events import ChatstateReceivedEvent, \
|
from gajim.common.connection_handlers_events import ChatstateReceivedEvent, \
|
||||||
InformationEvent
|
InformationEvent
|
||||||
from gajim.common.logger import KindConstant
|
from gajim.common.logger import KindConstant
|
||||||
|
|
||||||
from gajim import message_control
|
from gajim import message_control
|
||||||
|
|
||||||
from gajim import notify
|
from gajim import notify
|
||||||
|
|
||||||
from gajim import dialogs
|
from gajim import dialogs
|
||||||
from gajim import negotiation
|
from gajim import negotiation
|
||||||
|
|
||||||
|
|
|
@ -23,16 +23,15 @@
|
||||||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
||||||
##
|
##
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
from gi.repository import Gdk
|
from gi.repository import Gdk
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from gajim import dialogs
|
from gajim import dialogs
|
||||||
from gajim import config
|
from gajim import config
|
||||||
from gajim import tooltips
|
from gajim import tooltips
|
||||||
from gajim import gtkgui_helpers
|
from gajim import gtkgui_helpers
|
||||||
|
|
||||||
from gajim.common import app
|
from gajim.common import app
|
||||||
from gajim.common import helpers
|
from gajim.common import helpers
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue