Lintings changes

1. replace tabs by spaces
2. align assignations
3. no trailing spaces/tabs
4. put a re.compile outside a function, to make it compiled one time
   only
This commit is contained in:
Luc Didry 2018-11-20 22:16:08 +01:00
parent 320c7056d0
commit 97b2c6b01e
Failed to generate hash of commit

2
bot.py
View file

@ -87,8 +87,8 @@ def post_img_distant(mastodon, text, log, config):
media_dict = mastodon.media_post("output.jpg")
return media_dict;
cleanr = re.compile('<.*?>')
def cleanhtml(raw_html):
cleanr = re.compile('<.*?>')
cleantext = re.sub(cleanr, '', raw_html)
return cleantext