From 8aa5b1465f79b67526003d1177a734414ccb3670 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 10 Jun 2020 17:01:03 +0200 Subject: [PATCH 1/1] Compatibility fix. --- src/librarian/text.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.20.1