Fix a string issue of the selector
[pti/o2.git] / o2common / views / route.py
index 868ff70..e740333 100644 (file)
@@ -232,5 +232,5 @@ class o2_marshal_with(marshal_with):
             for s in selector_all:
                 selector[s] = val
             return
-        default_selector = str(mask).split('()')
+        default_selector = str(mask).strip(' ()')
         self.__update_selector_value(selector, default_selector, val)