Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
saegel committed Nov 16, 2020
1 parent c1f4634 commit a777aaf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion stix/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def istypeof(cls, obj):
return isinstance(obj, cls)


class TypedList(TypedCollection, collections.MutableSequence):
class TypedList(TypedCollection, collections.abc.MutableSequence):
def __init__(self, *args):
TypedCollection.__init__(self, *args)

Expand Down
2 changes: 1 addition & 1 deletion stix/common/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from stix.bindings import stix_common as stix_common_binding


class Profiles(collections.MutableSequence, stix.Entity):
class Profiles(collections.abc.MutableSequence, stix.Entity):
_binding = stix_common_binding
_binding_class = stix_common_binding.ProfilesType
_namespace = 'http://stix.mitre.org/common-1'
Expand Down
2 changes: 1 addition & 1 deletion stix/common/references.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from stix.bindings import stix_common as stix_common_binding


class References(collections.MutableSequence, stix.Entity):
class References(collections.abc.MutableSequence, stix.Entity):
_binding = stix_common_binding
_binding_class = stix_common_binding.ReferencesType
_namespace = 'http://stix.mitre.org/common-1'
Expand Down
2 changes: 1 addition & 1 deletion stix/common/structured_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _unset_default(text):
text.ordinality = ordinality


class StructuredTextList(stix.TypedCollection, collections.Sequence):
class StructuredTextList(stix.TypedCollection, collections.abc.Sequence):
"""A sequence type used to store StructureText objects.
Args:
Expand Down
2 changes: 1 addition & 1 deletion stix/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2017, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.

__version__ = "1.2.0.10"
__version__ = "1.2.0.11"

0 comments on commit a777aaf

Please sign in to comment.