Module ImportFrom alias Import alias Import alias ImportFrom alias Import alias FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword IfExp NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Call AttributeLoad Str attr NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num For NameStore AttributeLoad NameLoad attr body With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr keyword UnaryOpNot AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad Assign NameStore Num handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call NameLoad Call AttributeLoad Str attr NameLoad Return Num Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad
N/A __future__ print_function N/A argparse N/A sys collections OrderedDict N/A simplejson _get_pretty_format N/A N/A contents indent sort_keys N/A True N/A N/A N/A N/A N/A simplejson dumps N/A N/A simplejson loads contents object_pairs_hook N/A sort_keys None OrderedDict sort_keys sort_keys indent indent N/A _autofix N/A N/A filename new_contents N/A N/A N/A N/A print N/A N/A Fixing file {0} format filename N/A N/A open filename w f N/A N/A N/A N/A f write new_contents N/A pretty_format_json N/A N/A argv N/A None N/A N/A parser N/A N/A argparse ArgumentParser N/A N/A N/A parser add_argument --autofix action store_true dest autofix help Automatically fixes encountered not-pretty-formatted files N/A N/A N/A parser add_argument --indent type int default 2 help Number of indent spaces used to pretty-format files N/A N/A N/A parser add_argument --no-sort-keys action store_true dest no_sort_keys default False help Keep JSON nodes in the same order N/A N/A N/A parser add_argument filenames nargs * help Filenames to fix N/A args N/A N/A parser parse_args argv N/A status 0 N/A json_file N/A args filenames N/A N/A N/A open json_file f N/A N/A contents N/A N/A f read N/A N/A N/A pretty_contents N/A _get_pretty_format contents N/A args indent sort_keys N/A N/A args no_sort_keys N/A N/A contents pretty_contents N/A N/A N/A print N/A N/A File {0} is not pretty-formatted format json_file N/A N/A args autofix N/A N/A N/A _autofix json_file pretty_contents N/A status 1 N/A N/A N/A N/A simplejson JSONDecodeError N/A N/A N/A print N/A N/A Input File {0} is not a valid JSON, consider using check-json format json_file N/A 1 N/A status N/A N/A N/A __name__ __main__ N/A N/A N/A N/A sys exit N/A pretty_format_json