Commit 0b85cab6 authored by Jérome Perrin's avatar Jérome Perrin

payroll_l10n_fr: pylint py3

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