X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/8550d172b829f29b2fcd4723789fb2a5d9fff6eb..ecc4f5c21f155d689a75cb3f48b154ba37501583:/src/librarian/text.py?ds=inline diff --git a/src/librarian/text.py b/src/librarian/text.py index 8e3960d..e425552 100644 --- a/src/librarian/text.py +++ b/src/librarian/text.py @@ -8,6 +8,7 @@ from __future__ import unicode_literals import copy from librarian import functions, OutputFile, get_resource from lxml import etree +import io import os import six @@ -18,7 +19,7 @@ functions.reg_strip() functions.reg_person_name() -with open(get_resource("res/text/template.txt")) as f: +with io.open(get_resource("res/text/template.txt")) as f: TEMPLATE = f.read()