Mercurial > hgrepos > Python > libs > ConfigMix
comparison configmix/constants.py @ 303:2a2f5b86fe34
Move some important public constants into the .constants sub-module
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 25 Apr 2021 16:09:00 +0200 |
| parents | |
| children | f529ca46dd50 |
comparison
equal
deleted
inserted
replaced
| 302:063099b188cd | 303:2a2f5b86fe34 |
|---|---|
| 1 # -*- coding: utf-8 -*- | |
| 2 # :- | |
| 3 # :Copyright: (c) 2015-2021, Franz Glasner. All rights reserved. | |
| 4 # :License: BSD-3-Clause. See LICENSE.txt for details. | |
| 5 # :- | |
| 6 """Some important public contants | |
| 7 | |
| 8 """ | |
| 9 | |
| 10 from .compat import u | |
| 11 | |
| 12 | |
| 13 COMMENTS = [ | |
| 14 u("__comment"), | |
| 15 u("__doc"), | |
| 16 ] | |
| 17 """Prefixes for comment configuration keys that are to be handled as | |
| 18 comments | |
| 19 | |
| 20 """ | |
| 21 | |
| 22 DIR_PREFIX = u("<dir>") | |
| 23 """Prefix for configuration values to read other configuration files from | |
| 24 given directory | |
| 25 | |
| 26 """ | |
| 27 | |
| 28 DEL_VALUE = u("{{::DEL::}}") | |
| 29 """Value for configuration items to signal that the corresponding | |
| 30 key-value is to be deleted when configurations are merged | |
| 31 | |
| 32 """ |
