PyFunceble/logs.py
def _get_content(cls, file):
        """
        Get and return the content of the given log file.

        :param file: The file we have to get the content from.
        :type file: str

        :return The content of the given file.
        :rtype: dict
        """

        if PyFunceble.path.isfile(file):
            return Dict().from_json(File(file).read())

        return {}
def _get_content(cls, file):
        if PyFunceble.path.isfile(file):
            return Dict().from_json(File(file).read())

        return {}
def _get_content ( cls , file ) : if PyFunceble . path . isfile ( file ) : return Dict ( ) . from_json ( File ( file ) . read ( ) ) return { }
Get and return the content of the given log file.

        :param file: The file we have to get the content from.
        :type file: str

        :return The content of the given file.
        :rtype: dict
Get and return the content of the given log file .