diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-11-19 18:48:19 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-11-19 18:48:19 +0100 |
commit | e4b5d08f07fbcc7222a864f0e60487dab770b576 (patch) | |
tree | ff9ad0cd7bb846797d99000966d78437944ac4d7 /icktool | |
parent | e8ffc8d614fdf40011b055e2fee27964d333b0eb (diff) | |
download | ick2-e4b5d08f07fbcc7222a864f0e60487dab770b576.tar.gz |
Add: icktool reads YAML
YAML is a superset of JSON, soe old inputs will still work.
Diffstat (limited to 'icktool')
-rwxr-xr-x | icktool | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -24,6 +24,7 @@ import apifw import cliapp import Crypto.PublicKey.RSA import requests +import yaml import ick2 @@ -220,7 +221,7 @@ class Icktool(cliapp.Application): sys.stdout.write('\n') def _read_object(self): - return json.load(sys.stdin) + return yaml.load(sys.stdin) class API: |