From 7a7f9be0d1a5e7e5c78097c11e8404ee74e62cd9 Mon Sep 17 00:00:00 2001 From: xiota Date: Wed, 15 Sep 2021 09:08:20 -0700 Subject: use sys.stdin.buffer to work around type mismatch in codecs.py --- screenplain/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenplain/main.py b/screenplain/main.py index 30a5175..437928e 100644 --- a/screenplain/main.py +++ b/screenplain/main.py @@ -94,7 +94,7 @@ def main(args): if input_file: input = codecs.open(input_file, 'r', 'utf-8-sig') else: - input = codecs.getreader('utf-8')(sys.stdin) + input = codecs.getreader('utf-8')(sys.stdin.buffer) screenplay = fountain.parse(input) if format == 'pdf': -- cgit