edk2toollib/uefi/edk2/guid_list.py
def parse_guids_from_edk2_file(filename: str) -> list:
        """ parse edk2 files for guids

        filename: abspath to dec file
        """
        if(filename.lower().endswith(".dec")):
            with open(filename, "r") as f:
                return GuidList.parse_guids_from_dec(f, filename)
        elif(filename.lower().endswith(".inf")):
            return GuidList.parse_guids_from_inf(filename)
        else:
            return []
 parse edk2 files for guids

        filename: abspath to dec file
        
parse edk2 files for guids
filename: abspath to dec file
parse edk2 files for guids filename : abspath to dec file
def parse_guids_from_edk2_file(filename: str) -> list:
        if(filename.lower().endswith(".dec")):
            with open(filename, "r") as f:
                return GuidList.parse_guids_from_dec(f, filename)
        elif(filename.lower().endswith(".inf")):
            return GuidList.parse_guids_from_inf(filename)
        else:
            return []
def parse_guids_from_edk2_file ( filename : str ) -> list : if ( filename . lower ( ) . endswith ( ".dec" ) ) : with open ( filename , "r" ) as f : return GuidList . parse_guids_from_dec ( f , filename ) elif ( filename . lower ( ) . endswith ( ".inf" ) ) : return GuidList . parse_guids_from_inf ( filename ) else : return [ ]
parse edk2 files for guids
filename: abspath to dec file
parse edk2 files for guids filename : abspath to dec file
""" parse edk2 files for guids

        filename: abspath to dec file
        """
filename
str