diff options
author | James E. Blair <corvus@gnu.org> | 2017-05-02 17:17:09 -0700 |
---|---|---|
committer | James E. Blair <corvus@gnu.org> | 2017-05-02 17:17:09 -0700 |
commit | 66b97688aa3945e1e9671e8400f57ce7c0943533 (patch) | |
tree | ab3c3ed05eef2c4ddfb2eaf15072116e33031daf | |
parent | 1fbc379fc0973d21c1ba4aad85015b277c2b3122 (diff) |
Fix encoding error in rst.py test function
-rw-r--r-- | presentty/rst.py | 2 |
1 files changed, 1 insertions, 1 deletions
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(): | |||
472 | args = argp.parse_args() | 472 | args = argp.parse_args() |
473 | 473 | ||
474 | parser = PresentationParser(palette.DARK_PALETTE) | 474 | parser = PresentationParser(palette.DARK_PALETTE) |
475 | document, visitor = parser._parse(open(args.file).read(), args.file) | 475 | document, visitor = parser._parse(unicode(open(args.file).read(), 'utf-8'), args.file) |
476 | 476 | ||
477 | slides = args.slides | 477 | slides = args.slides |
478 | if not slides: | 478 | if not slides: |