Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information:

Commit bfa26ef0 authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

- Default argument for 'include_root' in and .select_by_tag now False

parent d7a1433e
......@@ -595,7 +595,7 @@ class Node(
return self._tree_repr(' ' * indentation, opening, closing, density=1)
def select(self, match_function: Callable, include_root: bool=True) -> Iterator['Node']:
def select(self, match_function: Callable, include_root: bool=False) -> Iterator['Node']:
Finds nodes in the tree that fulfill a given criterion.
......@@ -623,7 +623,7 @@ class Node(
def select_by_tag(self, tag_names: Union[str, AbstractSet[str]],
include_root: bool=True) -> Iterator['Node']:
include_root: bool=False) -> Iterator['Node']:
Returns an iterator that runs through all descendants that have one
of the given tag names.
......@@ -209,7 +209,7 @@ class TestNodeFind():
assert matches[1] == parse_sxpr('(X F)')
# check default: root is included in search:
matchf2 = lambda node: match_tag_name(node, 'a')
assert list(
assert list(, include_root=True))
assert not list(, include_root=False))
def test_getitem(self):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment