py3 fixes

This commit is contained in:
j 2017-12-14 17:14:43 +00:00
parent 9b83231721
commit fa9835117c

View file

@ -46,7 +46,7 @@ def render_poster(data, poster):
director = ox.decode_html(u', '.join(data.get(key, []))).upper() director = ox.decode_html(u', '.join(data.get(key, []))).upper()
if director: if director:
break break
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', ''))