Skip to content

Commit 5c847ed

Browse files
committed
indicator_libmessaging pylint fixes
1 parent a961a4a commit 5c847ed

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

src/plugins/indicator_libmessaging.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
# -*- coding: utf-8 -*-
2+
"""
3+
src/plugins/indicator_libmessaging.py
4+
=====================================
5+
"""
6+
from pybitmessage.bitmessageqt.utils import str_broadcast_subscribers
7+
from pybitmessage.tr import _translate
28

39
import gi
4-
gi.require_version('MessagingMenu', '1.0') # noqa:E402
10+
gi.require_version('MessagingMenu', '1.0') # ..noqa:E402
511
from gi.repository import MessagingMenu
612

7-
from pybitmessage.bitmessageqt.utils import str_broadcast_subscribers
8-
from pybitmessage.tr import _translate
9-
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)