Fixed reading from stdin on Python 2.7 ("fdopen() takes no keyword arguments")

pull/37/head
Andrew Krasichkov 2017-05-12 16:02:38 +03:00
parent d4060866d5
commit 34e065d839
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ def main():
with Gixy(config=config) as yoda:
if path == '-':
with os.fdopen(sys.stdin.fileno(), mode='r') as fdata:
with os.fdopen(sys.stdin.fileno(), 'r') as fdata:
yoda.audit('<stdin>', fdata, is_stdin=True)
else:
with open(path, mode='r') as fdata: