From 0568fd87f818173d74ec921dd9fd1779c00e3bbd Mon Sep 17 00:00:00 2001 From: navjot Date: Thu, 30 Apr 2020 17:19:48 +0530 Subject: [PATCH] fixed code quality for pylint, flake8 or codestyle --- src/bitmessagekivy/mpybit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bitmessagekivy/mpybit.py b/src/bitmessagekivy/mpybit.py index e56bf76b..69c115ac 100644 --- a/src/bitmessagekivy/mpybit.py +++ b/src/bitmessagekivy/mpybit.py @@ -2896,7 +2896,7 @@ def avatarImageFirstLetter(letter_string): img_latter = letter_string[0] else: img_latter = '!' - except ValueError as e: + except ValueError: img_latter = '!' return img_latter if img_latter else '!' @@ -3085,11 +3085,12 @@ class RandomBoxlayout(BoxLayout): def esc_markup(msg): + """this method is for replacing some property""" return (msg.replace('&', '&') .replace('[', '&bl;') .replace(']', '&br;')) - + class ChatRoom(Screen): """class for chatroom screen""" def send_msg(self):