(self, filepath)
Parse a distro release file.

        Parameters:

        * filepath: Path name of the distro release file.

        Returns:
            A dictionary containing all information items.
Parse a distro release file.
Parse a distro release file .
def _parse_distro_release_file(self, filepath):
        """
        Parse a distro release file.

        Parameters:

        * filepath: Path name of the distro release file.

        Returns:
            A dictionary containing all information items.
        """
        try:
            with open(filepath) as fp:
                # Only parse the first line. For instance, on SLES there
                # are multiple lines. We don't want them...
                return self._parse_distro_release_content(fp.readline())
        except (OSError, IOError):
            # Ignore not being able to read a specific, seemingly version
            # related file.
            # See https://github.com/nir0s/distro/issues/162
            return {}
def _parse_distro_release_file ( self , filepath ) : try : with open ( filepath ) as fp : # Only parse the first line. For instance, on SLES there # are multiple lines. We don't want them... return self . _parse_distro_release_content ( fp . readline ( ) ) except ( OSError , IOError ) : # Ignore not being able to read a specific, seemingly version # related file. # See https://github.com/nir0s/distro/issues/162 return { }