Read this path as a TOML document.

        The `TOML <https://github.com/toml-lang/toml>`_ parsing is done with
        the :mod:`pytoml` module. The *encoding*, *errors*, and *newline*
        keywords are passed to :meth:`open`. The remaining *kwargs* are passed
        to :meth:`toml.load`.

        Returns the decoded data structure.

def read_toml(self, encoding=None, errors=None, newline=None, **kwargs):
        """Read this path as a TOML document.

        The `TOML <https://github.com/toml-lang/toml>`_ parsing is done with
        the :mod:`pytoml` module. The *encoding*, *errors*, and *newline*
        keywords are passed to :meth:`open`. The remaining *kwargs* are passed
        to :meth:`toml.load`.

        Returns the decoded data structure.

        """
        import pytoml

        with self.open (mode='rt', encoding=encoding, errors=errors, newline=newline) as f:
            return pytoml.load (f, **kwargs)