Mercurial > hgrepos > Python > libs > ConfigMix
diff doc/introduction.rst @ 134:2f2e819e8d17
Check the return type of the JSON and YAML loading functions: they must be a dict alike
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Thu, 05 Apr 2018 09:12:29 +0200 |
| parents | 05cb18c8697a |
| children | c87b0dc54e1d |
line wrap: on
line diff
--- a/doc/introduction.rst Wed Apr 04 23:51:07 2018 +0200 +++ b/doc/introduction.rst Thu Apr 05 09:12:29 2018 +0200 @@ -22,8 +22,9 @@ .. note:: All strings are returned as Unicode text strings. -.. note:: The root object must be a *mapping* and therefore decode into - a Python :class:`dict` alike. +.. note:: The root object must be a *mapping* and therefore decode + into a Python :class:`dict` alike. This is checked by the + implementation. An example is: @@ -40,8 +41,9 @@ .. note:: All strings are returned as Unicode text strings. -.. note:: The root object must be an *object* and therefore decode into - a Python :class:`dict` alike. +.. note:: The root object must be an *object* and therefore decode + into a Python :class:`dict` alike. This is checked by the + implementation. .. todo:: Handle JSON comments by special attributes which will filtered out on further processing. Javascript comments are
