Generic unicode updates

This commit is contained in:
Magnus Hagander
2019-01-19 19:48:47 +01:00
parent 7547b6f766
commit a156829375
28 changed files with 62 additions and 62 deletions

View File

@ -167,7 +167,7 @@ def _make_sitemap(pagelist):
x.startElement('url', {})
x.add_xml_element('loc', 'https://www.postgresql.org/%s' % urllib.quote(p[0]))
if len(p) > 1 and p[1]:
x.add_xml_element('priority', unicode(p[1]))
x.add_xml_element('priority', str(p[1]))
if len(p) > 2 and p[2]:
x.add_xml_element('lastmod', p[2].isoformat() + "Z")
x.endElement('url')