changeset 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 d803321d927b
files configmix/config.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configmix/config.py	Sun Dec 19 10:35:06 2021 +0100
+++ b/configmix/config.py	Sun Dec 19 10:38:20 2021 +0100
@@ -883,7 +883,7 @@
         v = self._path_string
         if v is None:
             if self._path:
-                v = _HIER_SEPARATOR.join(quote(p) for p in self._path) \
+                v = _HIER_SEPARATOR.join([quote(p) for p in self._path]) \
                     + _HIER_SEPARATOR
             else:
                 v = _EMPTY_STR