changeset 485:008b35666a43

Use the new contant _EMPTY_STR where appropriate
author Franz Glasner <f.glasner@feldmann-mg.com>
date Fri, 17 Dec 2021 15:56:33 +0100
parents 0259bd521729
children 5a88c514d4e0
files configmix/config.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configmix/config.py	Fri Dec 17 15:55:51 2021 +0100
+++ b/configmix/config.py	Fri Dec 17 15:56:33 2021 +0100
@@ -784,7 +784,7 @@
                 res_append(p[9:])
             else:
                 raise ValueError("unknown quote syntax string: {}".format(s))
-        return ''.join(res)
+        return klass._EMPTY_STR.join(res)
 
     def jailed(self, rootpath=None, root=None, bind_root=True):
         """Return a "jailed" configuration of the current configuration.
@@ -866,7 +866,7 @@
                     [Configuration.quote(p) for p in path]) \
                 + Configuration._HIER_SEPARATOR
         else:
-            self._pathstr = ''
+            self._pathstr = Configuration._EMPTY_STR
 
     @property
     def base(self):