Commit 3f663703 authored by eckhart's avatar eckhart
Browse files

small adjustments in transform.py

parent 1b7c3ff4
......@@ -561,7 +561,7 @@ def replace_parser(context: List[Node], name: str):
Parameters:
context: the context where the parser shall be replaced
name: "NAME:PTYPE" of the surogate. The ptype is optional
name: "NAME:PTYPE" of the surrogate. The ptype is optional
"""
node = context[-1]
name, ptype = (name.split(':') + [''])[:2]
......
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