Commit 98e8b84c authored by Philippe's avatar Philippe Committed by olb
Browse files

python3: from iteritems to items

parent f59eaa19
......@@ -111,7 +111,7 @@ for report_type in __settings['REPORTS_DEFAULT'].keys():
if report_type in __reports_default:
import collections
def update(d, u):
for k, v in u.iteritems():
for k, v in u.items():
if isinstance(v, collections.Mapping):
r = update(d.get(k, {}), v)
d[k] = r
......@@ -126,7 +126,7 @@ for report_type in __settings['REPORTS_DEFAULT'].keys():
__settings['REPORTS'] = []
for year in __accounting_years:
for report_type, report_default in __settings['REPORTS_DEFAULT'].iteritems():
for report_type, report_default in __settings['REPORTS_DEFAULT'].items():
__report = report_default.copy()
__report['year'] = year
Supports Markdown
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