Mercurial > hgrepos > Python > libs > ConfigMix
comparison doc/introduction.rst @ 132:4ec783899835
Note that the root object of a YAML style configuration must be a dict alike (mapping)
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Wed, 04 Apr 2018 23:50:37 +0200 |
| parents | b34ad08e7198 |
| children | 05cb18c8697a |
comparison
equal
deleted
inserted
replaced
| 131:b34ad08e7198 | 132:4ec783899835 |
|---|---|
| 20 | 20 |
| 21 Need the :mod:`yaml` package (e.g. ``pip install pyyaml``) | 21 Need the :mod:`yaml` package (e.g. ``pip install pyyaml``) |
| 22 | 22 |
| 23 .. note:: All strings are returned as Unicode text strings. | 23 .. note:: All strings are returned as Unicode text strings. |
| 24 | 24 |
| 25 .. note:: The root object must be a *mapping* and therefore decode into | |
| 26 a Python :class:`dict` alike. | |
| 25 | 27 |
| 26 An example is: | 28 An example is: |
| 27 | 29 |
| 28 .. literalinclude:: ../tests/data/conf10.yml | 30 .. literalinclude:: ../tests/data/conf10.yml |
| 29 :language: yaml | 31 :language: yaml |
