From 5878d0a2c3e7db98497f4ba424149a95601a2e0d Mon Sep 17 00:00:00 2001 From: Spencer Young Date: Tue, 24 Mar 2020 20:30:16 -0700 Subject: [PATCH] use sys.stdin.buffer --- yamllint/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yamllint/cli.py b/yamllint/cli.py index 9490698..5bbbcd6 100644 --- a/yamllint/cli.py +++ b/yamllint/cli.py @@ -189,7 +189,7 @@ def run(argv=None): # read yaml from stdin if args.stdin: try: - problems = linter.run(sys.stdin, conf, '') + problems = linter.run(sys.stdin.buffer, conf, '') except EnvironmentError as e: print(e, file=sys.stderr) sys.exit(-1)