File tree Expand file tree Collapse file tree 5 files changed +15
-6
lines changed
Expand file tree Collapse file tree 5 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def get_long_description():
3030install_requires = [
3131 'lxml>=2.2.3 ; python_version == "2.7" or python_version >= "3.5"' ,
3232 'lxml>=2.2.3,<4.4.0 ; python_version > "2.7" and python_version < "3.5"' ,
33- 'mixbox>=1.0.2 ' ,
33+ 'mixbox>=1.0.4 ' ,
3434 'cybox>=2.1.0.13,<2.1.1.0' ,
3535 'python-dateutil' ,
3636]
Original file line number Diff line number Diff line change 88from sys import version_info
99
1010# mixbox
11+ from mixbox import compat
1112from mixbox import idgen
1213from mixbox import entities
1314from mixbox import fields
@@ -311,7 +312,7 @@ def istypeof(cls, obj):
311312 return isinstance (obj , cls )
312313
313314
314- class TypedList (TypedCollection , collections .MutableSequence ):
315+ class TypedList (TypedCollection , compat .MutableSequence ):
315316 def __init__ (self , * args ):
316317 TypedCollection .__init__ (self , * args )
317318
Original file line number Diff line number Diff line change 33
44import collections
55
6+ from mixbox import compat
67from mixbox import fields
78
89import stix
910from stix .bindings import stix_common as stix_common_binding
1011
1112
12- class Profiles (collections .MutableSequence , stix .Entity ):
13+ class Profiles (compat .MutableSequence , stix .Entity ):
1314 _binding = stix_common_binding
1415 _binding_class = stix_common_binding .ProfilesType
1516 _namespace = 'http://stix.mitre.org/common-1'
Original file line number Diff line number Diff line change 22# See LICENSE.txt for complete terms.
33import collections
44
5+ from mixbox import compat
56from mixbox import fields
67
78import stix
89from stix .bindings import stix_common as stix_common_binding
910
1011
11- class References (collections .MutableSequence , stix .Entity ):
12+ class References (compat .MutableSequence , stix .Entity ):
1213 _binding = stix_common_binding
1314 _binding_class = stix_common_binding .ReferencesType
1415 _namespace = 'http://stix.mitre.org/common-1'
Original file line number Diff line number Diff line change 1010import stix
1111import stix .utils as utils
1212import stix .bindings .stix_common as stix_common_binding
13- from mixbox .vendor .six import text_type
13+ from mixbox .vendor .six import PY2 , PY3 , text_type
14+
15+
16+ if PY2 :
17+ from collections import Sequence
18+ elif PY3 :
19+ from collections .abc import Sequence
1420
1521
1622#: Default ordinality value for StructuredText.
@@ -105,7 +111,7 @@ def _unset_default(text):
105111 text .ordinality = ordinality
106112
107113
108- class StructuredTextList (stix .TypedCollection , collections . Sequence ):
114+ class StructuredTextList (stix .TypedCollection , Sequence ):
109115 """A sequence type used to store StructureText objects.
110116
111117 Args:
You can’t perform that action at this time.
0 commit comments