Commit fa33ec52 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a crude python2/python3 hack to deal with UTF-8

parent eeed23f9
......@@ -39,7 +39,12 @@ def parse_file(fn, cl, tl, sl):
section = ""
resec = re.compile("[ /]\* SECTION: ")
f = open(fn, "r")
try:
# Python3
f = open(fn, "r", encoding="UTF-8")
except TypeError:
# Python2
f = open(fn, "r")
for l in f:
if "*/" in l:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment