Commit 2faee2a2 authored by Jérome Perrin's avatar Jérome Perrin

payroll_l10n_fr: pylint py3

parent afe8a56d
......@@ -167,7 +167,7 @@ def unicodeDict(d):
return d
for k, v in six.iteritems(d):
if isinstance(v, str):
d.update({k: unicode(v, 'utf8')})
d.update({k: six.text_type(v, 'utf8')})
return d
source_section = paysheet.getSourceSectionValue()
......
......@@ -97,7 +97,9 @@ def getReportSectionDictList(line_dict_list):
line_to_group_list = []
# add one line for gross salary
if previous_line_dict is not None and gross_category in previous_line_dict['base_contribution_list'] and gross_category not in current_line_dict['base_contribution_list']:
if (previous_line_dict is not None
and gross_category in previous_line_dict['base_contribution_list'] # pylint:disable=unsubscriptable-object
and gross_category not in current_line_dict['base_contribution_list']):
new_line_dict_list.append(
getFakeLineDictForNewSection(
context.Base_translateString("Gross Salary"),
......
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