Merge pull request #64 from jaicis/Chatroom
fixed code quality for pylint, flake8 or codestyle
This commit is contained in:
commit
0fca124cd8
|
@ -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;'))
|
||||
|
|
Reference in New Issue
Block a user