Philipp Hörist pushed to branch mainwindow at gajim / gajim

Commits:

5 changed files:

Changes:

  • gajim/common/app.py
    ... ... @@ -211,7 +211,7 @@ def detect_dependencies():
    211 211
             gi.require_version('Gst', '1.0')
    
    212 212
             gi.require_version('GstPbutils', '1.0')
    
    213 213
             from gi.repository import Gst
    
    214
    -        from gi.repository import GstPbutils
    
    214
    +        from gi.repository import GstPbutils  # pylint: disable=unused-import
    
    215 215
             _dependencies['GST'] = True
    
    216 216
         except Exception:
    
    217 217
             pass
    
    ... ... @@ -264,7 +264,6 @@ def detect_dependencies():
    264 264
         # GSOUND
    
    265 265
         try:
    
    266 266
             gi.require_version('GSound', '1.0')
    
    267
    -        from gi.repository import GLib
    
    268 267
             from gi.repository import GSound
    
    269 268
             global gsound_ctx
    
    270 269
             gsound_ctx = GSound.Context()
    
    ... ... @@ -292,14 +291,14 @@ def detect_dependencies():
    292 291
         # APPINDICATOR
    
    293 292
         try:
    
    294 293
             gi.require_version('AppIndicator3', '0.1')
    
    295
    -        from gi.repository import AppIndicator3
    
    294
    +        from gi.repository import AppIndicator3  # pylint: disable=unused-import
    
    296 295
             _dependencies['APPINDICATOR'] = True
    
    297 296
         except (ImportError, ValueError):
    
    298 297
             pass
    
    299 298
         # AYATANA APPINDICATOR
    
    300 299
         try:
    
    301 300
             gi.require_version('AyatanaAppIndicator3', '0.1')
    
    302
    -        from gi.repository import AyatanaAppIndicator3
    
    301
    +        from gi.repository import AyatanaAppIndicator3  # pylint: disable=unused-import
    
    303 302
             _dependencies['AYATANA_APPINDICATOR'] = True
    
    304 303
         except (ImportError, ValueError):
    
    305 304
             pass
    

  • gajim/common/client.py
    ... ... @@ -29,7 +29,6 @@
    29 29
     from gajim.common import modules
    
    30 30
     from gajim.common.const import ClientState
    
    31 31
     from gajim.common.const import SimpleClientState
    
    32
    -from gajim.common.structs import UNKNOWN_PRESENCE
    
    33 32
     from gajim.common.helpers import get_custom_host
    
    34 33
     from gajim.common.helpers import get_user_proxy
    
    35 34
     from gajim.common.helpers import warn_about_plain_connection
    

  • gajim/common/storage/base.py
    ... ... @@ -17,7 +17,6 @@
    17 17
     import time
    
    18 18
     import sqlite3
    
    19 19
     import json
    
    20
    -import dataclasses
    
    21 20
     
    
    22 21
     from gi.repository import GLib
    
    23 22
     
    

  • gajim/common/storage/cache.py
    ... ... @@ -19,8 +19,6 @@
    19 19
     from collections import namedtuple
    
    20 20
     from collections import defaultdict
    
    21 21
     
    
    22
    -from nbxmpp.protocol import JID
    
    23
    -
    
    24 22
     from gajim.common import configpaths
    
    25 23
     from gajim.common.storage.base import SqliteStorage
    
    26 24
     from gajim.common.storage.base import timeit
    

  • gajim/common/styling.py
    ... ... @@ -3,8 +3,6 @@
    3 3
     from dataclasses import dataclass
    
    4 4
     from dataclasses import field
    
    5 5
     
    
    6
    -from gi.repository import GLib
    
    7
    -
    
    8 6
     PRE = '`'
    
    9 7
     STRONG = '*'
    
    10 8
     STRIKE = '~'