Fix trailing commas

pull/1/head
Chris Lenk 2020-06-26 16:41:53 -04:00
parent d5d664ba41
commit e25734d2b6
2 changed files with 6 additions and 4 deletions

View File

@ -170,8 +170,10 @@ class Property(object):
self.required = required self.required = required
if required and default: if required and default:
raise STIXError("Cant't use 'required' and 'default' together. 'required'" raise STIXError(
"really means 'the user must provide this.'") "Cant't use 'required' and 'default' together. 'required'"
"really means 'the user must provide this.'",
)
if fixed: if fixed:
self._fixed_value = fixed self._fixed_value = fixed

View File

@ -131,7 +131,7 @@ MALWARE_ANALYSIS_KWARGS = dict(
NOTE_KWARGS = dict( NOTE_KWARGS = dict(
content="Heartbleed", content="Heartbleed",
object_refs=[CAMPAIGN_ID] object_refs=[CAMPAIGN_ID],
) )
OBSERVED_DATA_KWARGS = dict( OBSERVED_DATA_KWARGS = dict(
@ -148,7 +148,7 @@ OBSERVED_DATA_KWARGS = dict(
OPINION_KWARGS = dict( OPINION_KWARGS = dict(
opinion="agree", opinion="agree",
object_refs=[CAMPAIGN_ID] object_refs=[CAMPAIGN_ID],
) )
REPORT_KWARGS = dict( REPORT_KWARGS = dict(