aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2021-09-15 20:41:35 +0200
committerGitHub <noreply@github.com>2021-09-15 20:41:35 +0200
commitef32edb276e2b2d542bb7c731547a153220d98aa (patch)
tree25fb6224a8597c5f7e0fb1eb7642e7ba41c72634
parentbc719b69c84f2a84a83d12b00090e10570c8510b (diff)
parent7a7f9be0d1a5e7e5c78097c11e8404ee74e62cd9 (diff)
downloadscreenplain-ef32edb276e2b2d542bb7c731547a153220d98aa.tar.gz
Merge pull request #70 from xiota/stdin
use sys.stdin.buffer to work around type mismatch in codecs.py
-rw-r--r--screenplain/main.py2
1 files changed, 1 insertions, 1 deletions
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':