@@ -52,12 +52,12 @@ def __repr__(self):
5252class AttackChangesEncoder (json .JSONEncoder ):
5353 """Custom JSON encoder for changes made to ATT&CK between releases."""
5454
55- def default (self , obj ):
55+ def default (self , o ):
5656 """Handle custom object types so they can be serialized to JSON."""
57- if isinstance (obj , AttackObjectVersion ):
58- return str (obj )
57+ if isinstance (o , AttackObjectVersion ):
58+ return str (o )
5959
60- return json .JSONEncoder .default (self , obj )
60+ return json .JSONEncoder .default (self , o )
6161
6262
6363class DiffStix (object ):
@@ -898,6 +898,7 @@ def placard(self, stix_object: dict, section: str, domain: str) -> str:
898898 Final return string to be displayed in the Changelog.
899899 """
900900 datastore_version = "old" if section == "deletions" else "new"
901+ placard_string = ""
901902
902903 if section == "deletions" :
903904 placard_string = stix_object ["name" ]
@@ -952,6 +953,7 @@ def placard(self, stix_object: dict, section: str, domain: str) -> str:
952953 def get_markdown_section_data (self , groupings , section : str , domain : str ) -> str :
953954 """Parse a list of STIX objects in a section and return a string for the whole section."""
954955 sectionString = ""
956+ placard_string = ""
955957 for grouping in groupings :
956958 if grouping ["parentInSection" ]:
957959 placard_string = self .placard (stix_object = grouping ["parent" ], section = section , domain = domain )
0 commit comments