use sys.stdin.buffer

pull/239/head
Spencer Young 5 years ago
parent 3fbef3e02b
commit 5878d0a2c3

@ -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)

Loading…
Cancel
Save