import yaml
import json
import sys

INPUT_NAME = sys.argv[1]

if INPUT_NAME[-5:] != ".yaml":
    print("FIle is not yaml")
    sys.exit(1)

OUTPUT_NAME = INPUT_NAME[:-5] + ".json"

print("Outputing to %s" % OUTPUT_NAME)

with open(INPUT_NAME) as input:
    with open(OUTPUT_NAME, 'w') as output:
	    o = yaml.load(input)
	    json.dump(o, output, indent=4, sort_keys=True)

191ef34ce0a07167678d0d20e1498ee11c77ffe8
<mask token>

<mask token>
if INPUT_NAME[-5:] != '.yaml':
    print('FIle is not yaml')
    sys.exit(1)
<mask token>
print('Outputing to %s' % OUTPUT_NAME)
with open(INPUT_NAME) as input:
    with open(OUTPUT_NAME, 'w') as output:
        o = yaml.load(input)
        json.dump(o, output, indent=4, sort_keys=True)

<mask token>
INPUT_NAME = sys.argv[1]
if INPUT_NAME[-5:] != '.yaml':
    print('FIle is not yaml')
    sys.exit(1)
OUTPUT_NAME = INPUT_NAME[:-5] + '.json'
print('Outputing to %s' % OUTPUT_NAME)
with open(INPUT_NAME) as input:
    with open(OUTPUT_NAME, 'w') as output:
        o = yaml.load(input)
        json.dump(o, output, indent=4, sort_keys=True)

import yaml
import json
import sys
INPUT_NAME = sys.argv[1]
if INPUT_NAME[-5:] != '.yaml':
    print('FIle is not yaml')
    sys.exit(1)
OUTPUT_NAME = INPUT_NAME[:-5] + '.json'
print('Outputing to %s' % OUTPUT_NAME)
with open(INPUT_NAME) as input:
    with open(OUTPUT_NAME, 'w') as output:
        o = yaml.load(input)
        json.dump(o, output, indent=4, sort_keys=True)

import yaml
import json
import sys

INPUT_NAME = sys.argv[1]

if INPUT_NAME[-5:] != ".yaml":
    print("FIle is not yaml")
    sys.exit(1)

OUTPUT_NAME = INPUT_NAME[:-5] + ".json"

print("Outputing to %s" % OUTPUT_NAME)

with open(INPUT_NAME) as input:
    with open(OUTPUT_NAME, 'w') as output:
	    o = yaml.load(input)
	    json.dump(o, output, indent=4, sort_keys=True)
