Mercurial > hgrepos > Python > libs > ConfigMix
comparison configmix/config.py @ 329:d81d2cdf4925
FIX: Handle the unquoting of namespaces within Configuration.getvar() properly.
BUGS: The "ref" namespace is handled specially and not yet compatible with
escaping some character of the "ref:" marker.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 07 May 2021 09:18:41 +0200 |
| parents | b7abfbfe806d |
| children | 5ec0ae3bb8db |
comparison
equal
deleted
inserted
replaced
| 328:cffa4fcd0a4d | 329:d81d2cdf4925 |
|---|---|
| 235 def _split_ns(self, s): | 235 def _split_ns(self, s): |
| 236 nameparts = s.split(self._NS_SEPARATOR, 1) | 236 nameparts = s.split(self._NS_SEPARATOR, 1) |
| 237 if len(nameparts) == 1: | 237 if len(nameparts) == 1: |
| 238 return (None, s, ) | 238 return (None, s, ) |
| 239 else: | 239 else: |
| 240 return (nameparts[0], nameparts[1], ) | 240 return (self.unquote(nameparts[0]), nameparts[1], ) |
| 241 | 241 |
| 242 def _split_filters(self, s): | 242 def _split_filters(self, s): |
| 243 nameparts = s.split(self._FILTER_SEPARATOR) | 243 nameparts = s.split(self._FILTER_SEPARATOR) |
| 244 if len(nameparts) == 1: | 244 if len(nameparts) == 1: |
| 245 return (s, [], ) | 245 return (s, [], ) |
