Fix pattern in code example in README

See also #43.
stix2.1
Chris Lenk 2017-08-18 08:59:27 -04:00 committed by GitHub
parent f3b59e85ad
commit cd1851c56b
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@ constructor:
from stix2 import Indicator
indicator = Indicator(name="File hash for malware variant",
labels=['malicious-activity'],
pattern='file:hashes.md5 = "d41d8cd98f00b204e9800998ecf8427e"')
labels=["malicious-activity"],
pattern="[file:hashes.md5 = 'd41d8cd98f00b204e9800998ecf8427e']")
Certain required attributes of all objects will be set automatically if
not provided as keyword arguments: