Mercurial > hgrepos > Python > libs > ConfigMix
comparison configmix/constants.py @ 358:8ce46c9e70ab
Make the "u()" import in constants non exportable
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 24 Jun 2021 21:21:45 +0200 |
| parents | dd454e1efea4 |
| children | f454889e41fa |
comparison
equal
deleted
inserted
replaced
| 357:dd454e1efea4 | 358:8ce46c9e70ab |
|---|---|
| 5 # :- | 5 # :- |
| 6 """Some important public contants | 6 """Some important public contants |
| 7 | 7 |
| 8 """ | 8 """ |
| 9 | 9 |
| 10 from .compat import u | 10 from .compat import u as _u |
| 11 | 11 |
| 12 | 12 |
| 13 COMMENTS = [ | 13 COMMENTS = [ |
| 14 u("__comment"), | 14 _u("__comment"), |
| 15 u("__doc"), | 15 _u("__doc"), |
| 16 ] | 16 ] |
| 17 """Prefixes for comment configuration keys that are to be handled as | 17 """Prefixes for comment configuration keys that are to be handled as |
| 18 comments | 18 comments |
| 19 | 19 |
| 20 """ | 20 """ |
| 21 | 21 |
| 22 DIR_PREFIX = u("<dir>") | 22 DIR_PREFIX = _u("<dir>") |
| 23 """Prefix for configuration values to read other configuration files from | 23 """Prefix for configuration values to read other configuration files from |
| 24 given directory | 24 given directory |
| 25 | 25 |
| 26 """ | 26 """ |
| 27 | 27 |
| 28 DEL_VALUE = u("{{::DEL::}}") | 28 DEL_VALUE = _u("{{::DEL::}}") |
| 29 """Value for configuration items to signal that the corresponding | 29 """Value for configuration items to signal that the corresponding |
| 30 key-value is to be deleted when configurations are merged | 30 key-value is to be deleted when configurations are merged |
| 31 | 31 |
| 32 """ | 32 """ |
| 33 | 33 |
| 34 REF_NAMESPACE = u("ref") | 34 REF_NAMESPACE = _u("ref") |
| 35 """Special internal namespace used for implementation of tree | 35 """Special internal namespace used for implementation of tree |
| 36 `references` | 36 `references` |
| 37 | 37 |
| 38 """ | 38 """ |
| 39 | 39 |
| 40 NONE_FILTER = u("None") | 40 NONE_FILTER = _u("None") |
| 41 """The public name of the special `None` filter""" | 41 """The public name of the special `None` filter""" |
| 42 | 42 |
| 43 EMPTY_FILTER = u("Empty") | 43 EMPTY_FILTER = _u("Empty") |
| 44 """The public name of the special `None` filter""" | 44 """The public name of the special `None` filter""" |
