aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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':