Mercurial > hgrepos > Python > libs > ConfigMix
comparison configmix/config.py @ 513:599e8ade567c
str.join(): use a list comprehension instead of a generator expression for performance reasons
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 19 Dec 2021 10:38:20 +0100 |
| parents | bf8a1b1498db |
| children | 3387a9d5fb12 |
comparison
equal
deleted
inserted
replaced
| 512:bf8a1b1498db | 513:599e8ade567c |
|---|---|
| 881 @property | 881 @property |
| 882 def _pathstr(self): | 882 def _pathstr(self): |
| 883 v = self._path_string | 883 v = self._path_string |
| 884 if v is None: | 884 if v is None: |
| 885 if self._path: | 885 if self._path: |
| 886 v = _HIER_SEPARATOR.join(quote(p) for p in self._path) \ | 886 v = _HIER_SEPARATOR.join([quote(p) for p in self._path]) \ |
| 887 + _HIER_SEPARATOR | 887 + _HIER_SEPARATOR |
| 888 else: | 888 else: |
| 889 v = _EMPTY_STR | 889 v = _EMPTY_STR |
| 890 self._path_string = v | 890 self._path_string = v |
| 891 return v | 891 return v |
