Commit c9d9cc19 authored by Jérome Perrin's avatar Jérome Perrin

fixup! crm: pylint on py3

parent ded56fc8
......@@ -92,7 +92,7 @@ for r_event in event_list:
unassigned_dic[event.getSimulationState()]=unassigned_dic[event.getSimulationState()]+1
unassigned_dic['total']=unassigned_dic['total']+1
#Sort the result and add unassigned
column_list.sort(key=lambda x=(x['ticket_type'], x['ticket_title']))
column_list.sort(key=lambda x: (x['ticket_type'], x['ticket_title']))
if unassigned_dic['total']>0: column_list.append(unassigned_dic)
#fill line_list that is returned to report
line_list = []
......
......@@ -6,6 +6,6 @@ LENGTH = 25
if six.PY3:
return text[:LENGTH]
try:
return six.text_type(unicode(text, 'utf-8'))[:LENGTH].encode('utf-8')
return six.text_type(text, 'utf-8')[:LENGTH].encode('utf-8')
except UnicodeDecodeError:
return text[:LENGTH]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment