diff configmix/config.py @ 553:9d2bd411f5c5

Do not rstrip() the remaining variable name when parsing out filters from variable names
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 02 Jan 2022 20:43:24 +0100
parents 39e5d07d8dbc
children 36d7aa000435
line wrap: on
line diff
--- a/configmix/config.py	Sun Jan 02 20:40:09 2022 +0100
+++ b/configmix/config.py	Sun Jan 02 20:43:24 2022 +0100
@@ -411,10 +411,9 @@
     if sep:
         filters = filters.strip()
         if filters:
-            return (name.rstrip(),
-                    filters.split(_FILTER_SEPARATOR))
+            return (name, filters.split(_FILTER_SEPARATOR))
         else:
-            return (name.rstrip(), [])
+            return (name, [])
     else:
         return (name, [])