Remove some unused imports

This commit is contained in:
André Apitzsch 2018-01-12 00:21:11 +01:00
parent aa6e9e7084
commit 6f025a1d4a
11 changed files with 1 additions and 22 deletions

View File

@ -18,9 +18,6 @@
## along with Gajim. If not, see <http://www.gnu.org/licenses/>. ## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
## ##
import sys
import os
from gi.repository import Gtk from gi.repository import Gtk
from gajim.common import app from gajim.common import app

View File

@ -39,22 +39,18 @@ from gajim import gui_menu_builder
from gajim import message_control from gajim import message_control
from gajim import dialogs from gajim import dialogs
from gajim.common import logger
from gajim.common import app from gajim.common import app
from gajim.common import helpers from gajim.common import helpers
from gajim.common import exceptions
from gajim.common import ged from gajim.common import ged
from gajim.common import i18n from gajim.common import i18n
from gajim.common.stanza_session import EncryptedStanzaSession, ArchivingStanzaSession from gajim.common.stanza_session import EncryptedStanzaSession, ArchivingStanzaSession
from gajim.common.contacts import GC_Contact from gajim.common.contacts import GC_Contact
from gajim.common.logger import KindConstant from gajim.common.logger import KindConstant
from nbxmpp.protocol import NS_XHTML, NS_XHTML_IM, NS_FILE, NS_MUC from nbxmpp.protocol import NS_XHTML, NS_XHTML_IM, NS_FILE, NS_MUC
from nbxmpp.protocol import NS_ESESSION
from nbxmpp.protocol import NS_JINGLE_RTP_AUDIO, NS_JINGLE_RTP_VIDEO from nbxmpp.protocol import NS_JINGLE_RTP_AUDIO, NS_JINGLE_RTP_VIDEO
from nbxmpp.protocol import NS_JINGLE_ICE_UDP, NS_JINGLE_FILE_TRANSFER_5 from nbxmpp.protocol import NS_JINGLE_ICE_UDP, NS_JINGLE_FILE_TRANSFER_5
from nbxmpp.protocol import NS_CHATSTATES from nbxmpp.protocol import NS_CHATSTATES
from gajim.common.connection_handlers_events import MessageOutgoingEvent from gajim.common.connection_handlers_events import MessageOutgoingEvent
from gajim.common.exceptions import GajimGeneralException
from gajim.common.const import AvatarSize from gajim.common.const import AvatarSize
from gajim.command_system.implementation.hosts import ChatCommands from gajim.command_system.implementation.hosts import ChatCommands

View File

@ -27,7 +27,6 @@
## along with Gajim. If not, see <http://www.gnu.org/licenses/>. ## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
## ##
import os
import time import time
from gi.repository import Gtk from gi.repository import Gtk
from gi.repository import Gdk from gi.repository import Gdk

View File

@ -31,13 +31,11 @@ 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 GdkPixbuf
from gi.repository import Pango from gi.repository import Pango
from gi.repository import GObject from gi.repository import GObject
from gi.repository import GLib from gi.repository import GLib
import time import time
import os import os
from gajim import tooltips
from gajim import dialogs from gajim import dialogs
import queue import queue
import urllib import urllib
@ -51,7 +49,6 @@ from gajim.common.fuzzyclock import FuzzyClock
from gajim import emoticons from gajim import emoticons
from gajim.htmltextview import HtmlTextView from gajim.htmltextview import HtmlTextView
from gajim.common.exceptions import GajimGeneralException
NOT_SHOWN = 0 NOT_SHOWN = 0
ALREADY_RECEIVED = 1 ALREADY_RECEIVED = 1

View File

@ -33,7 +33,6 @@ from gi.repository import GLib
import base64 import base64
from gajim import gtkgui_helpers from gajim import gtkgui_helpers
from gajim import dialogs
from gajim.common import dataforms from gajim.common import dataforms
from gajim.common import helpers from gajim.common import helpers

View File

@ -27,7 +27,6 @@
## along with Gajim. If not, see <http://www.gnu.org/licenses/>. ## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
## ##
import os
import time import time
import locale import locale

View File

@ -84,7 +84,7 @@ def get_icon_path(icon_name, size=16):
except GLib.GError as e: except GLib.GError as e:
log.error("Unable to find icon %s: %s" % (icon_name, str(e))) log.error("Unable to find icon %s: %s" % (icon_name, str(e)))
from gajim import vcard
from gajim import dialogs from gajim import dialogs

View File

@ -38,7 +38,6 @@ import os
import sys import sys
import re import re
import time import time
import math
import hashlib import hashlib
from gi.repository import Gtk from gi.repository import Gtk

View File

@ -27,14 +27,11 @@ from gi.repository import Gdk
from gi.repository import GLib from gi.repository import GLib
from gi.repository import GdkPixbuf from gi.repository import GdkPixbuf
import base64 import base64
import os
import time import time
import logging import logging
import hashlib
from gajim import gtkgui_helpers from gajim import gtkgui_helpers
from gajim import dialogs from gajim import dialogs
from gajim import vcard
from gajim.common.const import AvatarSize from gajim.common.const import AvatarSize
from gajim.common import app from gajim.common import app

View File

@ -43,7 +43,6 @@ import os
import sys import sys
import time import time
import locale import locale
import hashlib
from enum import IntEnum, unique from enum import IntEnum, unique

View File

@ -37,10 +37,7 @@ from gi.repository import Gdk
from gi.repository import GdkPixbuf from gi.repository import GdkPixbuf
import base64 import base64
import binascii import binascii
import time
import locale
import os import os
# import logging
from gajim import gtkgui_helpers from gajim import gtkgui_helpers