Mercurial > hgrepos > Python > libs > ConfigMix
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/configmix/constants.py Sun Apr 25 16:09:00 2021 +0200 @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# :- +# :Copyright: (c) 2015-2021, Franz Glasner. All rights reserved. +# :License: BSD-3-Clause. See LICENSE.txt for details. +# :- +"""Some important public contants + +""" + +from .compat import u + + +COMMENTS = [ + u("__comment"), + u("__doc"), +] +"""Prefixes for comment configuration keys that are to be handled as +comments + +""" + +DIR_PREFIX = u("<dir>") +"""Prefix for configuration values to read other configuration files from +given directory + +""" + +DEL_VALUE = u("{{::DEL::}}") +"""Value for configuration items to signal that the corresponding +key-value is to be deleted when configurations are merged + +"""
