summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames E. Blair <corvus@gnu.org>2017-05-02 17:17:09 -0700
committerJames E. Blair <corvus@gnu.org>2017-05-02 17:17:09 -0700
commit66b97688aa3945e1e9671e8400f57ce7c0943533 (patch)
treeab3c3ed05eef2c4ddfb2eaf15072116e33031daf
parent1fbc379fc0973d21c1ba4aad85015b277c2b3122 (diff)
downloadpresentty-66b97688aa3945e1e9671e8400f57ce7c0943533.tar.gz
presentty-66b97688aa3945e1e9671e8400f57ce7c0943533.tar.xz
presentty-66b97688aa3945e1e9671e8400f57ce7c0943533.zip
Fix encoding error in rst.py test function
-rw-r--r--presentty/rst.py2
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():
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: