Style changes to satisfy the 'style' tox check

master
Michael Chisholm 2019-06-14 18:10:38 -04:00
parent a150b0f4aa
commit d61b543266
4 changed files with 25 additions and 25 deletions

View File

@ -39,7 +39,7 @@ def _validate_selector(obj, selector):
def _get_marking_id(marking):
if type(marking).__name__ is 'MarkingDefinition': # avoid circular import
if type(marking).__name__ == 'MarkingDefinition': # avoid circular import
return marking.id
return marking

View File

@ -182,7 +182,7 @@ class ListProperty(Property):
if type(self.contained) is EmbeddedObjectProperty:
obj_type = self.contained.type
elif type(self.contained).__name__ is "STIXObjectProperty":
elif type(self.contained).__name__ == "STIXObjectProperty":
# ^ this way of checking doesn't require a circular import
# valid is already an instance of a python-stix2 class; no need
# to turn it into a dictionary and then pass it to the class