(self, path, **kwargs)
return None
Read file input into memory, returning deserialized objects

        :param path: Path of file to read
Read file input into memory, returning deserialized objects
Read file input into memory returning deserialized objects
def read_file(self, path, **kwargs):
        """Read file input into memory, returning deserialized objects

        :param path: Path of file to read
        """
        # TODO support JSON here
        # TODO sphinx way of reporting errors in logs?
        subcmd = "jsdoc"
        if os.name == "nt":
            subcmd = ".".join([subcmd, "cmd"])

        try:
            parsed_data = json.loads(subprocess.check_output([subcmd, "-X", path]))
            return parsed_data
        except IOError:
            LOGGER.warning(
                "Error reading file: {0}".format(path),
                type="autoapi",
                subtype="not_readable",
            )
        except TypeError:
            LOGGER.warning(
                "Error reading file: {0}".format(path),
                type="autoapi",
                subtype="not_readable",
            )
        return None
def read_file ( self , path , * * kwargs ) : # TODO support JSON here # TODO sphinx way of reporting errors in logs? subcmd = "jsdoc" if os . name == "nt" : subcmd = "." . join ( [ subcmd , "cmd" ] ) try : parsed_data = json . loads ( subprocess . check_output ( [ subcmd , "-X" , path ] ) ) return parsed_data except IOError : LOGGER . warning ( "Error reading file: {0}" . format ( path ) , type = "autoapi" , subtype = "not_readable" , ) except TypeError : LOGGER . warning ( "Error reading file: {0}" . format ( path ) , type = "autoapi" , subtype = "not_readable" , ) return None