tools/utils.py
def json_file_to_dict(fname):
    """ Read a JSON file and return its Python representation, transforming all
    the strings from Unicode to ASCII. The order of keys in the JSON file is
    preserved.

    Positional arguments:
    fname - the name of the file to parse
    """
    try:
        with open(fname, "r") as file_obj:
            return dict_to_ascii(json.load(file_obj,
                                           object_pairs_hook=OrderedDict))
    except (ValueError, IOError):
        sys.stderr.write("Error parsing '%s':\n" % fname)
        raise
 Read a JSON file and return its Python representation, transforming all
    the strings from Unicode to ASCII. The order of keys in the JSON file is
    preserved.

    Positional arguments:
    fname - the name of the file to parse
    
Read a JSON file and return its Python representation, transforming all
the strings from Unicode to ASCII. The order of keys in the JSON file is
preserved.

Positional arguments:
fname - the name of the file to parse
Read a JSON file and return its Python representation transforming all the strings from Unicode to ASCII . The order of keys in the JSON file is preserved . Positional arguments : fname - the name of the file to parse
def json_file_to_dict(fname):
    try:
        with open(fname, "r") as file_obj:
            return dict_to_ascii(json.load(file_obj,
                                           object_pairs_hook=OrderedDict))
    except (ValueError, IOError):
        sys.stderr.write("Error parsing '%s':\n" % fname)
        raise
def json_file_to_dict ( fname ) : try : with open ( fname , "r" ) as file_obj : return dict_to_ascii ( json . load ( file_obj , object_pairs_hook = OrderedDict ) ) except ( ValueError , IOError ) : sys . stderr . write ( "Error parsing '%s':\n" % fname ) raise
Read a JSON file and return its Python representation, transforming all
the strings from Unicode to ASCII.
Read a JSON file and return its Python representation transforming all the strings from Unicode to ASCII .
""" Read a JSON file and return its Python representation, transforming all
    the strings from Unicode to ASCII. The order of keys in the JSON file is
    preserved.

    Positional arguments:
    fname - the name of the file to parse
    """
fname