Fixing lint issues

This commit is contained in:
garethgreenaway 2017-08-21 12:44:55 -07:00 committed by Justin Bradfield
parent 446457d017
commit b8ead879ed

View file

@ -146,12 +146,14 @@ def _gen_tag(low):
'''
return '{0[state]}_|-{0[__id__]}_|-{0[name]}_|-{0[fun]}'.format(low)
def _clean_tag(tag):
'''
urllib safe quote the tag value to avoid invalid chars in the filename
'''
return urllib.quote(tag.encode('utf8'), safe='')
def _l_tag(name, id_):
low = {'name': 'listen_{0}'.format(name),
'__id__': 'listen_{0}'.format(id_),