Fix pylint errors

This commit is contained in:
Philipp Hörist 2018-10-28 22:01:30 +01:00
parent ac3bc74952
commit 0e3b74da16
5 changed files with 1 additions and 8 deletions

View File

@ -26,7 +26,6 @@ from gajim.common import connection
from gajim.common.i18n import _ from gajim.common.i18n import _
from gajim.common.modules import dataforms from gajim.common.modules import dataforms
from gajim import gtkgui_helpers
from gajim import dataforms_widget from gajim import dataforms_widget
from gajim import gui_menu_builder from gajim import gui_menu_builder

View File

@ -48,7 +48,6 @@ import nbxmpp
from gi.repository import GLib from gi.repository import GLib
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 gajim.common import app from gajim.common import app
from gajim.common.i18n import _ from gajim.common.i18n import _
@ -280,7 +279,6 @@ class ServicesCache:
if identities is None: if identities is None:
identities = [] identities = []
# Grab the first identity with an icon # Grab the first identity with an icon
quiet = False
for identity in identities: for identity in identities:
try: try:
cat, type_ = identity['category'], identity['type'] cat, type_ = identity['category'], identity['type']
@ -293,7 +291,6 @@ class ServicesCache:
else: else:
# Loop fell through, default to unknown # Loop fell through, default to unknown
service_name = addr.split('.')[0] service_name = addr.split('.')[0]
quiet = True
# Or load it # Or load it
icon_name = 'gajim-agent-%s' % service_name icon_name = 'gajim-agent-%s' % service_name

View File

@ -27,7 +27,6 @@ from datetime import datetime
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 GLib from gi.repository import GLib
from gi.repository import Pango from gi.repository import Pango
from nbxmpp.protocol import NS_JINGLE_FILE_TRANSFER_5 from nbxmpp.protocol import NS_JINGLE_FILE_TRANSFER_5

View File

@ -22,6 +22,7 @@ from gajim.common.i18n import _
from gajim.common.caps_cache import muc_caps_cache from gajim.common.caps_cache import muc_caps_cache
from gajim.common.exceptions import GajimGeneralException from gajim.common.exceptions import GajimGeneralException
from gajim.gtk.discovery import ServiceDiscoveryWindow
from gajim.gtk.dialogs import ErrorDialog from gajim.gtk.dialogs import ErrorDialog
from gajim.gtk.util import get_builder from gajim.gtk.util import get_builder
@ -300,7 +301,6 @@ class JoinGroupchatWindow(Gtk.ApplicationWindow):
else: else:
try: try:
# Object will add itself to the window dict # Object will add itself to the window dict
from gajim.disco import ServiceDiscoveryWindow
ServiceDiscoveryWindow( ServiceDiscoveryWindow(
self.account, jid, self.account, jid,
initial_identities=[{'category': 'conference', initial_identities=[{'category': 'conference',

View File

@ -30,8 +30,6 @@ import math
import logging import logging
from io import BytesIO from io import BytesIO
import xml.etree.ElementTree as ET 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 Gtk
from gi.repository import Gdk from gi.repository import Gdk