From 34e065d839efa4804478ce434bd98c4a8f4ab698 Mon Sep 17 00:00:00 2001 From: Andrew Krasichkov Date: Fri, 12 May 2017 16:02:38 +0300 Subject: [PATCH] Fixed reading from stdin on Python 2.7 ("fdopen() takes no keyword arguments") --- gixy/cli/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gixy/cli/main.py b/gixy/cli/main.py index 5561f18..8d5b487 100644 --- a/gixy/cli/main.py +++ b/gixy/cli/main.py @@ -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('', fdata, is_stdin=True) else: with open(path, mode='r') as fdata: