From 065130a19b821de5edccaabfb7d1095ad7b289bd Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Wed, 15 Feb 2017 21:50:14 +0100 Subject: [PATCH] Python 2 compat: use codes to read css --- scripts/boxesserver | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/boxesserver b/scripts/boxesserver index c1d1100..1ad49ee 100755 --- a/scripts/boxesserver +++ b/scripts/boxesserver @@ -21,9 +21,10 @@ import tempfile import os.path import threading import time +import codecs csspath = os.path.join(os.path.dirname(__file__), 'self.css') -css = (open(csspath).read()) +css = codecs.open(csspath, "r", "utf-8").read() # Python 2 vs Python 3 compat