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)