Notice to GitKraken users: A vulnerability has been found in the SSH key generation of GitKraken versions 7.6.0 to 8.0.0 (https://www.gitkraken.com/blog/weak-ssh-key-fix). If you use GitKraken and have generated a SSH key using one of these versions, please remove it both from your local workstation and from your LRZ GitLab profile.

21.10.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 9fbe90b1 authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

- bug fix: missing __deepcopy__() in parse.PreprocessorToken

parent a9dd76b8
...@@ -861,6 +861,12 @@ class PreprocessorToken(Parser): ...@@ -861,6 +861,12 @@ class PreprocessorToken(Parser):
super().__init__() super().__init__()
self.name = token self.name = token
def __deepcopy__(self, memo):
duplicate = self.__class__(self.name)
duplicate.name = self.name
# duplicate.ptype = self.ptype
return duplicate
def __call__(self, text: StringView) -> Tuple[Optional[Node], StringView]: def __call__(self, text: StringView) -> Tuple[Optional[Node], StringView]:
if text[0:1] == BEGIN_TOKEN: if text[0:1] == BEGIN_TOKEN:
end = text.find(END_TOKEN, 1) end = text.find(END_TOKEN, 1)
......
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