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: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Commit af07a4db authored by di68kap's avatar di68kap
Browse files

- DHParser/syntaxtree.py Node.content property: No caching via Node._content...

- DHParser/syntaxtree.py Node.content property: No caching via Node._content any more, because this would require special using content-property while manipuliting the tree structure.
parent 6b244b8c
......@@ -161,7 +161,7 @@ class Node: # (collections.abc.Sized): Base class omitted for cython-compatibil
S-Expression-output.
"""
__slots__ = '_result', 'children', '_len', '_pos', 'tag_name', '_xml_attr', '_content'
__slots__ = '_result', 'children', '_len', '_pos', 'tag_name', '_xml_attr'
def __init__(self, tag_name: str, result: ResultType, leafhint: bool = False) -> None:
"""
......@@ -173,7 +173,7 @@ class Node: # (collections.abc.Sized): Base class omitted for cython-compatibil
# The following if-clause is merely an optimization, i.e. a fast-path for leaf-Nodes
if leafhint:
self._result = result # type: StrictResultType # cast(StrictResultType, result)
self._content = None # type: Optional[str]
# self._content = None # type: Optional[str]
self.children = NoChildren # type: ChildrenType
self._len = -1 # type: int # lazy evaluation
else:
......@@ -342,7 +342,7 @@ class Node: # (collections.abc.Sized): Base class omitted for cython-compatibil
# Possible optimization: Do not allow single nodes as argument:
# assert not isinstance(result, Node)
self._len = -1 # lazy evaluation
self._content = None
# self._content = None
if isinstance(result, Node):
self.children = (result,)
self._result = self.children
......@@ -904,7 +904,7 @@ class RootNode(Node):
self.tag_name = node.tag_name
if node.attr_active():
self._xml_attr = node._xml_attr
self._content = node._content
# self._content = node._content
if id(node) in self.error_nodes:
self.error_nodes[id(self)] = self.error_nodes[id(node)]
return 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