comparison configmix/config.py @ 707:10fbc23b4dba

Rename internal variable FILTER_SEPARATOR_REV -> FILTER_SEPARATOR_2
author Franz Glasner <f.glasner@feldmann-mg.com>
date Tue, 15 Aug 2023 10:41:22 +0200
parents 0485a033c95d
children e692216f8756
comparison
equal deleted inserted replaced
706:59a3fb7fcac3 707:10fbc23b4dba
238 _STARTTOK = u(b"{{") 238 _STARTTOK = u(b"{{")
239 _ENDTOK = u(b"}}") 239 _ENDTOK = u(b"}}")
240 _HIER_SEPARATOR = u(b'.') 240 _HIER_SEPARATOR = u(b'.')
241 _NS_SEPARATOR = u(b':') 241 _NS_SEPARATOR = u(b':')
242 _FILTER_SEPARATOR = u(b'|') 242 _FILTER_SEPARATOR = u(b'|')
243 _FILTER_SEPARATOR_REV = u(b',') 243 _FILTER_SEPARATOR_2 = u(b',')
244 _STARTTOK_REF = _STARTTOK + REF_NAMESPACE + _NS_SEPARATOR 244 _STARTTOK_REF = _STARTTOK + REF_NAMESPACE + _NS_SEPARATOR
245 _ENDTOK_REF = _ENDTOK 245 _ENDTOK_REF = _ENDTOK
246 _ENDTOK_FILTER = _FILTER_SEPARATOR + _ENDTOK 246 _ENDTOK_FILTER = _FILTER_SEPARATOR + _ENDTOK
247 _DOT = u(b'.') 247 _DOT = u(b'.')
248 _TILDE = u(b'~') 248 _TILDE = u(b'~')
451 filters = filters.strip() 451 filters = filters.strip()
452 if filters: 452 if filters:
453 if direction == 1: 453 if direction == 1:
454 return (name, filters.split(_FILTER_SEPARATOR)) 454 return (name, filters.split(_FILTER_SEPARATOR))
455 else: 455 else:
456 return (name, filters.split(_FILTER_SEPARATOR_REV)) 456 return (name, filters.split(_FILTER_SEPARATOR_2))
457 else: 457 else:
458 return (name, []) 458 return (name, [])
459 else: 459 else:
460 return (name, []) 460 return (name, [])
461 461