1
Fork 0

Better comparison

This commit is contained in:
Jake Howard 2015-12-06 14:23:53 +00:00
parent cf2ff57970
commit d514919b62

View file

@ -19,7 +19,7 @@ def show(key):
@click.argument('key', nargs=1) @click.argument('key', nargs=1)
@click.argument('value', nargs=-1) @click.argument('value', nargs=-1)
def set(key, value): def set(key, value):
if type(value) == type(()): if isinstance(value, tuple):
value = " ".join(value) value = " ".join(value)
status = config.set(key, value) status = config.set(key, value)
if status == "SUCCESS": if status == "SUCCESS":