We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7ea48ec + f57cc2a commit 8203099Copy full SHA for 8203099
examples/ex_01.py
@@ -14,7 +14,7 @@
14
15
def main():
16
fn = 'ex_01.xml'
17
- (stix_package, stix_package_obj) = STIXPackage.from_xml(fn)
+ (stix_package, stix_package_binding_obj) = STIXPackage.from_xml(fn)
18
stix_dict = stix_package.to_dict() # parse to dictionary
19
pprint(stix_dict)
20
stix/core/stix_header.py
@@ -74,7 +74,7 @@ def to_obj(self, return_obj=None):
74
75
@classmethod
76
def from_dict(cls, dict_repr, return_obj=None):
77
- if not dict:
+ if not dict_repr:
78
return None
79
80
if not return_obj:
0 commit comments