From 66b97688aa3945e1e9671e8400f57ce7c0943533 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Tue, 2 May 2017 17:17:09 -0700 Subject: Fix encoding error in rst.py test function --- presentty/rst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presentty/rst.py b/presentty/rst.py index 3c55f1e..b4258da 100644 --- a/presentty/rst.py +++ b/presentty/rst.py @@ -472,7 +472,7 @@ def main(): args = argp.parse_args() parser = PresentationParser(palette.DARK_PALETTE) - document, visitor = parser._parse(open(args.file).read(), args.file) + document, visitor = parser._parse(unicode(open(args.file).read(), 'utf-8'), args.file) slides = args.slides if not slides: -- cgit v1.2.3