(self, filenames, encoding=None)
return read_ok
Read and parse a filename or an iterable of filenames.

        Files that cannot be opened are silently ignored; this is
        designed so that you can specify an iterable of potential
        configuration file locations (e.g. current directory, user's
        home directory, systemwide directory), and all existing
        configuration files in the iterable will be read.  A single
        filename may also be given.

        Return list of successfully read files.
Read and parse a filename or an iterable of filenames.
Read and parse a filename or an iterable of filenames .
def read(self, filenames, encoding=None):
        """Read and parse a filename or an iterable of filenames.

        Files that cannot be opened are silently ignored; this is
        designed so that you can specify an iterable of potential
        configuration file locations (e.g. current directory, user's
        home directory, systemwide directory), and all existing
        configuration files in the iterable will be read.  A single
        filename may also be given.

        Return list of successfully read files.
        """
        if isinstance(filenames, (str, bytes, os.PathLike)):
            filenames = [filenames]
        encoding = io.text_encoding(encoding)
        read_ok = []
        for filename in filenames:
            try:
                with open(filename, encoding=encoding) as fp:
                    self._read(fp, filename)
            except OSError:
                continue
            if isinstance(filename, os.PathLike):
                filename = os.fspath(filename)
            read_ok.append(filename)
        return read_ok
def read ( self , filenames , encoding = None ) : if isinstance ( filenames , ( str , bytes , os . PathLike ) ) : filenames = [ filenames ] encoding = io . text_encoding ( encoding ) read_ok = [ ] for filename in filenames : try : with open ( filename , encoding = encoding ) as fp : self . _read ( fp , filename ) except OSError : continue if isinstance ( filename , os . PathLike ) : filename = os . fspath ( filename ) read_ok . append ( filename ) return read_ok