summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Kislyuk <kislyuk@gmail.com>2017-05-02 22:19:58 +0200
committerGitHub <noreply@github.com>2017-05-02 22:19:58 +0200
commit82ef5a4c4ee40b805aafba2d7797708cea2feae5 (patch)
tree07d1a518cac96085a0f59d027fc728cfed7c56eb
parent80e29b7adff1644815b321bfc83b438f7550671f (diff)
Make usage of loader argument consistent
-rwxr-xr-xyq/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yq/__init__.py b/yq/__init__.py
index eb2c224..5d958be 100755
--- a/yq/__init__.py
+++ b/yq/__init__.py
@@ -64,7 +64,7 @@ def main(args=None):
yaml.dump(out, stream=sys.stdout, Dumper=OrderedDumper, width=args.width,
allow_unicode=True, default_flow_style=False)
else:
- json.dump(yaml.load(input_stream, OrderedLoader), jq.stdin)
+ json.dump(yaml.load(input_stream, Loader=OrderedLoader), jq.stdin)
jq.stdin.close()
jq.wait()
exit(jq.returncode)