Python 2 compat: use codes to read css

This commit is contained in:
Florian Festi 2017-02-15 21:50:14 +01:00
parent 527388c5f2
commit 065130a19b
1 changed files with 2 additions and 1 deletions

View File

@ -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