no iteritems in python3

This commit is contained in:
j 2017-10-15 11:57:42 +02:00
parent f5bb701561
commit 3112f55430

View file

@ -40,7 +40,7 @@ def render_poster(data, poster):
title = ox.decode_html(data.get('title', '')).upper() title = ox.decode_html(data.get('title', '')).upper()
director = ox.decode_html(u', '.join(data.get('director', []))).upper() director = ox.decode_html(u', '.join(data.get('director', []))).upper()
for key, value in {u'\u03a0': 'PI', u'ß': u'SS'}.iteritems(): for key, value in {u'\u03a0': 'PI', u'ß': u'SS'}.items():
title = title.replace(key, value) title = title.replace(key, value)
director = director.replace(key, value) director = director.replace(key, value)
year = str(data.get('year', '')) year = str(data.get('year', ''))