fix more typos
parent
3a93b9e639
commit
6eb4325f3f
|
@ -28,11 +28,11 @@ def read_conf(config, conf_format):
|
||||||
conf_format = 'toml'
|
conf_format = 'toml'
|
||||||
else:
|
else:
|
||||||
click.echo('Could not detect file format, please supply using --format option', err=True)
|
click.echo('Could not detect file format, please supply using --format option', err=True)
|
||||||
if conf_type == 'json':
|
if conf_format == 'json':
|
||||||
import json
|
import json
|
||||||
to_json = json.loads(config.read())
|
to_json = json.loads(config.read())
|
||||||
output = schema.load(to_json)
|
output = schema.load(to_json)
|
||||||
elif conf_type == 'yaml':
|
elif conf_format == 'yaml':
|
||||||
try:
|
try:
|
||||||
import yaml
|
import yaml
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
@ -40,7 +40,7 @@ def read_conf(config, conf_format):
|
||||||
else:
|
else:
|
||||||
to_yaml = yaml.load(config.read())
|
to_yaml = yaml.load(config.read())
|
||||||
output = schema.load(to_yaml)
|
output = schema.load(to_yaml)
|
||||||
elif conf_type == 'toml':
|
elif conf_format == 'toml':
|
||||||
try:
|
try:
|
||||||
import toml
|
import toml
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
Loading…
Reference in New Issue