Skip to content

Commit b02e8dd

Browse files
committed
Fix typos.
1 parent dc143b4 commit b02e8dd

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

stix/common/information_source.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class InformationSource(stix.Entity):
3030
tools = fields.TypedField("Tools", ToolInformationList)
3131
references = fields.TypedField("References", References)
3232

33-
def __init__(self, description=None, identity=None, time=None, tools=None, contributing_sources=None, references=None):
33+
def __init__(self, description=None, identity=None, time=None, tools=None,
34+
contributing_sources=None, references=None):
3435
super(InformationSource, self).__init__()
3536

3637
self.identity = identity

stix/common/profiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ def from_dict(cls, cls_dict=None):
4646

4747
obj = cls()
4848
obj.profile = [x for x in cls_dict]
49-
return obj
49+
return obj

stix/common/statement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(self, value=None, timestamp=None, description=None,
3737
self.timestamp = timestamp or utils.dates.now()
3838
self.timestamp_precision = "second"
3939
self.value = value
40-
self.descriptions = description
40+
self.description = description
4141
self.source = source
4242
self.confidence = None
4343

stix/common/tools.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ class ToolInformation(stix.Entity, cybox.common.ToolInformation):
2121
title = fields.TypedField("Title")
2222
short_description = fields.TypedField("Short_Description", StructuredText)
2323

24-
def __init__(self, title=None, short_description=None, tool_name=None, tool_vendor=None):
25-
super(ToolInformation, self).__init__(tool_name=tool_name, tool_vendor=tool_vendor)
24+
def __init__(self, title=None, short_description=None, tool_name=None,
25+
tool_vendor=None):
26+
27+
super(ToolInformation, self).__init__(
28+
tool_name=tool_name,
29+
tool_vendor=tool_vendor
30+
)
31+
2632
self.title = title
2733
self.short_description = short_description

stix/extensions/malware/maec_4_1_malware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from stix.bindings.extensions.malware.maec_4_1 import maec_installed
2020
from lxml.etree import _ElementTree
2121

22-
_MIN_PYTHON_MAEC_VERSION = '4.1.0.12'
22+
_MIN_PYTHON_MAEC_VERSION = '4.1.0.13'
2323

2424

2525
class UnsupportedVersion(Exception):

0 commit comments

Comments
 (0)