Linted the python
This commit is contained in:
parent
8db9164e4c
commit
8c0aeff064
|
@ -3,13 +3,16 @@ from glob import glob
|
||||||
from lxml import html
|
from lxml import html
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
|
|
||||||
ASSET_DIR = os.path.dirname(os.path.realpath(__file__))
|
ASSET_DIR = os.path.dirname(os.path.realpath(__file__))
|
||||||
LOCAL_FILES = glob('assets/*.png') + glob('assets/*.gif')
|
LOCAL_FILES = glob('assets/*.png') + glob('assets/*.gif')
|
||||||
|
|
||||||
Emoticon = namedtuple('Emoticon', ['ident', 'url'])
|
Emoticon = namedtuple('Emoticon', ['ident', 'url'])
|
||||||
|
|
||||||
|
|
||||||
def get_filename(path):
|
def get_filename(path):
|
||||||
return path.replace('assets/', '')
|
return path.replace('assets/', '')
|
||||||
|
|
||||||
|
|
||||||
def get_icon_name(path):
|
def get_icon_name(path):
|
||||||
return get_filename(path).replace('.png', '').replace('.gif', '')
|
return get_filename(path).replace('.png', '').replace('.gif', '')
|
||||||
|
|
||||||
|
|
Reference in New Issue