aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2019-12-24 23:55:38 +0100
committerMatěj Cepl <mcepl@cepl.eu>2019-12-24 23:58:25 +0100
commitcbbdeda4c31df80353e201f5405694ddbb1a1421 (patch)
tree2922b09f0c39de9bc5c1cd455b4bd360966b3c0a
parent190906bfea4b8d77235850515ac9e29dee838e5f (diff)
downloadhesla-cbbdeda4c31df80353e201f5405694ddbb1a1421.tar.gz
Switch to python3
-rwxr-xr-xgenerate_html_cs.py7
-rwxr-xr-xgenerate_html_de.py6
2 files changed, 4 insertions, 9 deletions
diff --git a/generate_html_cs.py b/generate_html_cs.py
index a418b59..9301ca2 100755
--- a/generate_html_cs.py
+++ b/generate_html_cs.py
@@ -1,7 +1,4 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-from __future__ import absolute_import, print_function, unicode_literals
-
+#!/usr/bin/python3
import codecs
import logging
import re
@@ -9,7 +6,7 @@ import sys
import jinja2
-import lxml.etree as et
+import xml.etree.ElementTree as et
logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s',
diff --git a/generate_html_de.py b/generate_html_de.py
index ea3e9fd..dd31eba 100755
--- a/generate_html_de.py
+++ b/generate_html_de.py
@@ -1,9 +1,7 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-from __future__ import absolute_import, print_function, unicode_literals
+#!/usr/bin/python3
import datetime
import locale
-import lxml.etree as et
+import xml.etree.ElementTree as et
import sys
import logging
#logging.basicConfig(level=logging.DEBUG)