Mercurial > hgrepos > Python > libs > ConfigMix
comparison configmix/__init__.py @ 539:9546d38cd3f8
Refactor: the parsing of the quoted and dot-separated path string is put into a function that handles also empty inputs properly
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 28 Dec 2021 17:28:19 +0100 |
| parents | 16f077229ec2 |
| children | f454889e41fa |
comparison
equal
deleted
inserted
replaced
| 538:e85d1eddf539 | 539:9546d38cd3f8 |
|---|---|
| 30 import io | 30 import io |
| 31 import os | 31 import os |
| 32 import re | 32 import re |
| 33 | 33 |
| 34 from .compat import u2fs | 34 from .compat import u2fs |
| 35 from .config import Configuration, quote, unquote # noqa: F401 | 35 from .config import Configuration, quote, unquote, pathstr2path # noqa: F401 |
| 36 from . import constants | 36 from . import constants |
| 37 | 37 |
| 38 | 38 |
| 39 def load(*files, **kwargs): | 39 def load(*files, **kwargs): |
| 40 """Load the given configuration files, merge them in the given order | 40 """Load the given configuration files, merge them in the given order |
