File tree 5 files changed +15
-6
lines changed 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():
30
30
install_requires = [
31
31
'lxml>=2.2.3 ; python_version == "2.7" or python_version >= "3.5"' ,
32
32
'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 ' ,
34
34
'cybox>=2.1.0.13,<2.1.1.0' ,
35
35
'python-dateutil' ,
36
36
]
Original file line number Diff line number Diff line change 8
8
from sys import version_info
9
9
10
10
# mixbox
11
+ from mixbox import compat
11
12
from mixbox import idgen
12
13
from mixbox import entities
13
14
from mixbox import fields
@@ -311,7 +312,7 @@ def istypeof(cls, obj):
311
312
return isinstance (obj , cls )
312
313
313
314
314
- class TypedList (TypedCollection , collections .MutableSequence ):
315
+ class TypedList (TypedCollection , compat .MutableSequence ):
315
316
def __init__ (self , * args ):
316
317
TypedCollection .__init__ (self , * args )
317
318
Original file line number Diff line number Diff line change 3
3
4
4
import collections
5
5
6
+ from mixbox import compat
6
7
from mixbox import fields
7
8
8
9
import stix
9
10
from stix .bindings import stix_common as stix_common_binding
10
11
11
12
12
- class Profiles (collections .MutableSequence , stix .Entity ):
13
+ class Profiles (compat .MutableSequence , stix .Entity ):
13
14
_binding = stix_common_binding
14
15
_binding_class = stix_common_binding .ProfilesType
15
16
_namespace = 'http://stix.mitre.org/common-1'
Original file line number Diff line number Diff line change 2
2
# See LICENSE.txt for complete terms.
3
3
import collections
4
4
5
+ from mixbox import compat
5
6
from mixbox import fields
6
7
7
8
import stix
8
9
from stix .bindings import stix_common as stix_common_binding
9
10
10
11
11
- class References (collections .MutableSequence , stix .Entity ):
12
+ class References (compat .MutableSequence , stix .Entity ):
12
13
_binding = stix_common_binding
13
14
_binding_class = stix_common_binding .ReferencesType
14
15
_namespace = 'http://stix.mitre.org/common-1'
Original file line number Diff line number Diff line change 10
10
import stix
11
11
import stix .utils as utils
12
12
import 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
14
20
15
21
16
22
#: Default ordinality value for StructuredText.
@@ -105,7 +111,7 @@ def _unset_default(text):
105
111
text .ordinality = ordinality
106
112
107
113
108
- class StructuredTextList (stix .TypedCollection , collections . Sequence ):
114
+ class StructuredTextList (stix .TypedCollection , Sequence ):
109
115
"""A sequence type used to store StructureText objects.
110
116
111
117
Args:
You can’t perform that action at this time.
0 commit comments