diff --git a/runme.py b/runme.py index 6b05f08..d3dc3e0 100644 --- a/runme.py +++ b/runme.py @@ -1,9 +1,10 @@ # coding: utf-8 import sys +import io from converters.template import * C = ConverterTemplate(tplfile=sys.argv[1]) C.read('tests/ipynbref/IntroNumPy.orig.ipynb') S = C.convert() -with open('temp.txt','w') as f: +with io.open('temp.txt','w') as f: f.write(S) diff --git a/templates/fullhtml.tpl b/templates/fullhtml.tpl index a602b56..be9add0 100644 --- a/templates/fullhtml.tpl +++ b/templates/fullhtml.tpl @@ -5,7 +5,7 @@