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,6 +3085,7 @@ class RandomBoxlayout(BoxLayout):
def esc_markup(msg):
"""this method is for replacing some property"""
return (msg.replace('&', '&')
.replace('[', '&bl;')
.replace(']', '&br;'))