grenoble-metropole-2019: make template preparation script python3 compliant (#51912)

This commit is contained in:
Serghei Mihai 2021-03-11 14:46:31 +01:00
parent f7222b0c53
commit 3e577835bf
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ for content in root.xpath('//a[@id="eosm-btn"]'):
content.clear()
content.attrib['id'] = 'publik-mobile-menu'
content = etree.tostring(root, method='html', pretty_print=True)
content = str(etree.tostring(root, method='html', pretty_print=True), 'utf-8')
# remove all references to downloaded temporary file
content = content.replace(FILENAME, '')