Skip to content

Commit 19086b4

Browse files
committed
indicator_libmessaging pylint fixes
1 parent a961a4a commit 19086b4

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/plugins/indicator_libmessaging.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1+
"""
2+
src/plugins/indicator_libmessaging.py
3+
=====================================
4+
"""
15
# -*- coding: utf-8 -*-
2-
36
import gi
4-
gi.require_version('MessagingMenu', '1.0') # noqa:E402
57
from gi.repository import MessagingMenu
8+
gi.require_version('MessagingMenu', '1.0') # ..noqa:E402
69

710
from pybitmessage.bitmessageqt.utils import str_broadcast_subscribers
811
from pybitmessage.tr import _translate
912

1013

1114
class IndicatorLibmessaging(object):
15+
"""Plugin for libmessage indicator"""
1216
def __init__(self, form):
1317
try:
1418
self.app = MessagingMenu.App(desktop_id='pybitmessage.desktop')
@@ -32,7 +36,8 @@ def __del__(self):
3236
if self.app:
3337
self.app.unregister()
3438

35-
def activate(self, app, source):
39+
def activate(self, app, source): # pylint: disable=unused-argument
40+
"""Activate the libmessaging indicator plugin"""
3641
self.form.appIndicatorInbox(
3742
self.new_message_item if source == 'messages'
3843
else self.new_broadcast_item
@@ -41,6 +46,10 @@ def activate(self, app, source):
4146
# show the number of unread messages and subscriptions
4247
# on the messaging menu
4348
def show_unread(self, draw_attention=False):
49+
"""
50+
show the number of unread messages and subscriptions
51+
on the messaging menu
52+
"""
4453
for source, count in zip(
4554
('messages', 'subscriptions'),
4655
self.form.getUnread()

0 commit comments

Comments
 (0)