Mercurial > hgrepos > Python > libs > ConfigMix
comparison configmix/yaml.py @ 250:ff964825a75a
Style: placement of "__all__"
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 07 Jul 2020 09:27:24 +0200 |
| parents | 13711ba8e81e |
| children | edf5cc1ffd26 |
comparison
equal
deleted
inserted
replaced
| 249:1e38ccfba3de | 250:ff964825a75a |
|---|---|
| 7 loading configuration files. | 7 loading configuration files. |
| 8 | 8 |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 from __future__ import division, print_function, absolute_import | 11 from __future__ import division, print_function, absolute_import |
| 12 | |
| 13 | |
| 14 __all__ = ["safe_load", "safe_load_all", "load", "load_all"] | |
| 15 | |
| 12 | 16 |
| 13 try: | 17 try: |
| 14 from collections import OrderedDict | 18 from collections import OrderedDict |
| 15 except ImportError: | 19 except ImportError: |
| 16 try: | 20 try: |
| 19 OrderedDict = None | 23 OrderedDict = None |
| 20 import yaml | 24 import yaml |
| 21 import yaml.constructor | 25 import yaml.constructor |
| 22 | 26 |
| 23 from .compat import u | 27 from .compat import u |
| 24 | |
| 25 | |
| 26 __all__ = ["safe_load", "safe_load_all", "load", "load_all"] | |
| 27 | 28 |
| 28 | 29 |
| 29 DictImpl = OrderedDict or dict | 30 DictImpl = OrderedDict or dict |
| 30 | 31 |
| 31 | 32 |
