From a777aafa2573d5e66233e29b1909ce178f643891 Mon Sep 17 00:00:00 2001 From: Paul Schiffer Date: Mon, 16 Nov 2020 17:07:22 +0100 Subject: [PATCH] Fix deprecation warnings --- stix/base.py | 2 +- stix/common/profiles.py | 2 +- stix/common/references.py | 2 +- stix/common/structured_text.py | 2 +- stix/version.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stix/base.py b/stix/base.py index 14f50a6d..be6f3fd8 100644 --- a/stix/base.py +++ b/stix/base.py @@ -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) diff --git a/stix/common/profiles.py b/stix/common/profiles.py index a4499d01..12ac13fa 100644 --- a/stix/common/profiles.py +++ b/stix/common/profiles.py @@ -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' diff --git a/stix/common/references.py b/stix/common/references.py index 45bfbb27..ede7ef70 100644 --- a/stix/common/references.py +++ b/stix/common/references.py @@ -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' diff --git a/stix/common/structured_text.py b/stix/common/structured_text.py index b90c0396..32117e42 100644 --- a/stix/common/structured_text.py +++ b/stix/common/structured_text.py @@ -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: diff --git a/stix/version.py b/stix/version.py index a60a45d3..a2a3a195 100644 --- a/stix/version.py +++ b/stix/version.py @@ -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"