(self, filename, strict=True)
Read a single mime.types-format file, specified by pathname.

        If strict is true, information will be added to
        list of standard types, else to the list of non-standard
        types.
Read a single mime.types-format file, specified by pathname.
Read a single mime . types - format file specified by pathname .
def read(self, filename, strict=True):
        """
        Read a single mime.types-format file, specified by pathname.

        If strict is true, information will be added to
        list of standard types, else to the list of non-standard
        types.
        """
        with open(filename, encoding='utf-8') as fp:
            self.readfp(fp, strict)
def read ( self , filename , strict = True ) : with open ( filename , encoding = 'utf-8' ) as fp : self . readfp ( fp , strict )