Fix pylint errors
This commit is contained in:
parent
ac3bc74952
commit
0e3b74da16
|
@ -26,7 +26,6 @@ from gajim.common import connection
|
|||
from gajim.common.i18n import _
|
||||
from gajim.common.modules import dataforms
|
||||
|
||||
from gajim import gtkgui_helpers
|
||||
from gajim import dataforms_widget
|
||||
from gajim import gui_menu_builder
|
||||
|
||||
|
|
|
@ -48,7 +48,6 @@ import nbxmpp
|
|||
from gi.repository import GLib
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GdkPixbuf
|
||||
|
||||
from gajim.common import app
|
||||
from gajim.common.i18n import _
|
||||
|
@ -280,7 +279,6 @@ class ServicesCache:
|
|||
if identities is None:
|
||||
identities = []
|
||||
# Grab the first identity with an icon
|
||||
quiet = False
|
||||
for identity in identities:
|
||||
try:
|
||||
cat, type_ = identity['category'], identity['type']
|
||||
|
@ -293,7 +291,6 @@ class ServicesCache:
|
|||
else:
|
||||
# Loop fell through, default to unknown
|
||||
service_name = addr.split('.')[0]
|
||||
quiet = True
|
||||
|
||||
# Or load it
|
||||
icon_name = 'gajim-agent-%s' % service_name
|
||||
|
|
|
@ -27,7 +27,6 @@ from datetime import datetime
|
|||
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GdkPixbuf
|
||||
from gi.repository import GLib
|
||||
from gi.repository import Pango
|
||||
from nbxmpp.protocol import NS_JINGLE_FILE_TRANSFER_5
|
||||
|
|
|
@ -22,6 +22,7 @@ from gajim.common.i18n import _
|
|||
from gajim.common.caps_cache import muc_caps_cache
|
||||
from gajim.common.exceptions import GajimGeneralException
|
||||
|
||||
from gajim.gtk.discovery import ServiceDiscoveryWindow
|
||||
from gajim.gtk.dialogs import ErrorDialog
|
||||
from gajim.gtk.util import get_builder
|
||||
|
||||
|
@ -300,7 +301,6 @@ class JoinGroupchatWindow(Gtk.ApplicationWindow):
|
|||
else:
|
||||
try:
|
||||
# Object will add itself to the window dict
|
||||
from gajim.disco import ServiceDiscoveryWindow
|
||||
ServiceDiscoveryWindow(
|
||||
self.account, jid,
|
||||
initial_identities=[{'category': 'conference',
|
||||
|
|
|
@ -30,8 +30,6 @@ import math
|
|||
import logging
|
||||
from io import BytesIO
|
||||
import xml.etree.ElementTree as ET
|
||||
import xml.sax.saxutils
|
||||
from xml.sax import ContentHandler # type: ignore
|
||||
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
|
|
Loading…
Reference in New Issue