Commit aaafcbb0 authored by Alexander's avatar Alexander

[stickers] Lint

parent 383ebd0b
......@@ -20,7 +20,6 @@ import logging
import os
from gi.repository import Soup
from gi.repository import Gtk
from nbxmpp.errors import PubSubStanzaError
from nbxmpp.namespaces import Namespace
......@@ -28,11 +27,9 @@ from nbxmpp.simplexml import Node
from nbxmpp.structs import StanzaHandler
from gajim.common import app
from import NetworkEvent
from gajim.common.modules.base import BaseModule
from gajim.common.const import FTState
from gajim.gui.dialogs import ErrorDialog
from gajim.gui.dialogs import DialogButton
from gajim.plugins.plugins_i18n import _
from stickers.gtk.stickers import StickerStorage
......@@ -226,9 +223,9 @@ class StickersModule(BaseModule):
and publishes a sticker pack.
def on_sticker_pack_received(pack, error):
if error:
dialog = ErrorDialog(_('Sticker Pack Download'),
if error:
ErrorDialog(_('Sticker Pack Download'),
self._download_sticker_pack(pack, publish=True)
......@@ -476,7 +473,7 @@ class StickersModule(BaseModule):
log.debug('%s does not support pubsub#max_items=max', self._client.account)
self._account_pubsub_max[self._client.account] = '50'
def publish_pack(self, sticker_pack, callback=None, upload=True):
def publish_pack(self, sticker_pack, upload=True):
Publish a sticker pack on PubSub
......@@ -24,15 +24,12 @@ Send stickers according to XEP-0449 version 0.1.0.
from collections import namedtuple
from pathlib import Path
import json
import os
import shutil
import logging
from gi.repository import Gtk
from gi.repository import GdkPixbuf
from gi.repository import Gio
from nbxmpp.namespaces import Namespace
from nbxmpp.simplexml import Node
......@@ -54,16 +51,10 @@ from stickers.modules import stickers_module
from stickers.gtk.config import StickersConfigDialog
from stickers.gtk.utils import load_sticker_pixbuf
from stickers.gtk.models import FilterListModel
from stickers.gtk.models import StickerPackObject
from stickers.gtk.models import StickerObject
from stickers.gtk.stickers import StickerStorage
from stickers.utils import sticker_data_path
from stickers.utils import sticker_path
from stickers.utils import find_one
from stickers.utils import dict_append_or_set
from stickers.utils import hash_function_from_algo
from stickers.utils import body
from stickers.utils import detect_path_escape
from stickers.utils import print_widget
from stickers.common import Sticker
from stickers.common import Hash
......@@ -134,4 +134,3 @@ def verify_sticker_hashes(sticker, data):
log.warning('%s (Downloaded file) != %s (Advertised)', hash_value, hash_.value)
return not found_mismatch
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment