The expiration time for new job artifacts in CI/CD pipelines is now 30 days (GitLab default). Previously generated 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: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

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

syntaxtree.py: simplification of result.setter of Node-object

parent e2e999b1
......@@ -192,7 +192,7 @@ class Node:
that generated the node and the parser's result.
"""
# self._result = '' # type: StrictResultType
# self._children = () # type: ChildrenType
# self.children = () # type: ChildrenType
self._errors = [] # type: List[str]
self.result = result
self._len = len(result) if not self.children else \
......@@ -250,12 +250,7 @@ class Node:
self._result = (result,) if isinstance(result, Node) else result or '' # type: StrictResultType
self.children = cast(ChildrenType, self._result) \
if isinstance(self._result, tuple) else cast(ChildrenType, ()) # type: ChildrenType
self.error_flag = any(r.error_flag for r in self.children) \
if self.children else False # type: bool
# @property
# def children(self) -> ChildrenType:
# return self._children
self.error_flag = any(r.error_flag for r in self.children) # type: bool
@property
......
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