__init__.py
24.8 KB
-
Introduce _split_pattern to parse an "x:y:z" pattern · 8aaa06dd
This function takes a string like 'foo:bar[1:2]:baz[x:y]-quux' and returns a list of patterns ['foo', 'bar[1:2]', 'baz[x:y]-quux'], i.e. splits the string on colons that are not part of a range specification.
Abhijit Menon-Sen committed