diff --git a/org_rw/dom.py b/org_rw/dom.py index 23ea44b..6b3e455 100644 --- a/org_rw/dom.py +++ b/org_rw/dom.py @@ -89,12 +89,11 @@ class BlockNode: class CodeBlock(BlockNode): - def __init__(self, header, subtype, arguments): + def __init__(self, header, subtype): super().__init__() self.header = header self.lines = None self.subtype = subtype - self.arguments = arguments def set_lines(self, lines): self.lines = lines diff --git a/org_rw/org_rw.py b/org_rw/org_rw.py index 4fbfdb3..e412c4a 100644 --- a/org_rw/org_rw.py +++ b/org_rw/org_rw.py @@ -481,7 +481,7 @@ class Headline: and line.delimiter_type == DelimiterLineType.BEGIN_BLOCK ): assert type(current_node) in NON_FINISHED_GROUPS - current_node = dom.CodeBlock(line, line.type_data.subtype, line.arguments) + current_node = dom.CodeBlock(line, line.type_data.subtype) elif isinstance(line, Keyword): logging.warning("Keywords not implemented on `as_dom()`")