From e1b3a3f6b48aa319274f8340be2b89caea7d3de4 Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Tue, 17 Oct 2023 12:22:32 +0000 Subject: [PATCH] rules: fix rendering of yaml --- capa/rules/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/capa/rules/__init__.py b/capa/rules/__init__.py index c169fff1..0161bf22 100644 --- a/capa/rules/__init__.py +++ b/capa/rules/__init__.py @@ -984,7 +984,6 @@ class Rule: # we use the ruamel.yaml parser because it supports roundtripping of documents with comments. y = ruamel.yaml.YAML(typ="rt") - y.register_class(Scope) # use block mode, not inline json-like mode y.default_flow_style = False @@ -1064,7 +1063,6 @@ class Rule: meta[k] = v # the name and scope of the rule instance overrides anything in meta. meta["name"] = self.name - meta["scopes"] = asdict(self.scopes) def move_to_end(m, k): # ruamel.yaml uses an ordereddict-like structure to track maps (CommentedMap).