Skip to content

Some incorrect imports #20

@gleeda

Description

@gleeda

As I'm looking at the process_object code, I see that things have probably been moved around since this code was last used.

diff --git a/cybox/common/extracted_string.py b/cybox/common/extracted_string.py
index 415688c..57c8d80 100644
--- a/cybox/common/extracted_string.py
+++ b/cybox/common/extracted_string.py
@@ -1,6 +1,7 @@
 import cybox
 import cybox.bindings.cybox_common as common_types_binding
-from cybox.common.properties import String, HexBinary, PositiveInteger, HashList
+from cybox.common.properties import String, HexBinary, PositiveInteger
+from cybox.common.hashes import HashList
 
 class ExtractedString(cybox.Entity):
     def __init__(self, string_value = None):
diff --git a/cybox/objects/process_object.py b/cybox/objects/process_object.py
index 77feaf4..b287c50 100644
--- a/cybox/objects/process_object.py
+++ b/cybox/objects/process_object.py
@@ -5,7 +5,8 @@ from cybox.objects.address_object import Address
 from cybox.objects.network_connection_object import NetworkConnection
 from cybox.common.extracted_string_list import ExtractedStringList
 from cybox.common.environment_variable_list import EnvironmentVariableList
-from cybox.common.properties import ObjectProperties, String, DateTime, UnsignedInteger, Duration
+from cybox.common.properties import String, DateTime, UnsignedInteger, Duration
+from cybox.common import ObjectProperties

 class Process(ObjectProperties):
     _XSI_NS = "ProcessObj"
@@ -223,4 +224,4 @@ class ImageInfo(cybox.Entity):
         image_info_.current_directory = String.from_dict(image_info_obj.get_Current_Directory())
         image_info_.path = String.from_dict(image_info_obj.get_Path())

-        return image_info_
\ No newline at end of file
+        return image_info_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions