sq Learning better coding practices with Lex 2

This commit is contained in:
hackrush 2018-07-27 17:59:22 +05:30 committed by Jack Robison
parent 826d2866fa
commit 0601bf3197
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -42,10 +42,6 @@ def print_help_for_command(command):
print("Invalid command name")
def get_version():
print(json.dumps(get_platform(get_ip=False), sort_keys=True, indent=4, separators=(',', ': ')))
def guess_type(x, key=None):
if not isinstance(x, str):
return x
@ -102,7 +98,8 @@ def main(argv=None):
print_help()
elif method in ['version', '--version', '-v']:
get_version()
print(json.dumps(get_platform(get_ip=False), sort_keys=True, indent=4, separators=(',', ': ')))
elif method == 'start':
start(args)