Merge pull request #64 from jaicis/Chatroom

fixed code quality for pylint, flake8 or codestyle
This commit is contained in:
navjotcis 2020-04-30 17:26:27 +05:30 committed by GitHub
commit 0fca124cd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):