From ab1ac4d1807d7129edb73991243cd9ea46e9a2d0 Mon Sep 17 00:00:00 2001
From: ljhuang <huang.liujie@99cloud.net>
Date: Wed, 3 Aug 2022 17:49:49 +0800
Subject: [PATCH] Replace abc.abstractproperty with property and
 abc.abstractmethod

Replace abc.abstractproperty with property and abc.abstractmethod,
as abc.abstractproperty has been deprecated since python3.3[1]

[1]https://docs.python.org/3.8/whatsnew/3.3.html?highlight=deprecated#abc

Change-Id: Idfaf5bb3a0552f1128416821de58dc8e1bb584f0
---
 keystoneclient/tests/unit/auth/test_identity_common.py | 3 ++-
 keystoneclient/v3/contrib/federation/base.py           | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/keystoneclient/tests/unit/auth/test_identity_common.py b/keystoneclient/tests/unit/auth/test_identity_common.py
index 798a55270..13900cbc2 100644
--- a/keystoneclient/tests/unit/auth/test_identity_common.py
+++ b/keystoneclient/tests/unit/auth/test_identity_common.py
@@ -79,7 +79,8 @@ class CommonIdentityTests(object):
 
         self.stub_auth(json=token)
 
-    @abc.abstractproperty
+    @property
+    @abc.abstractmethod
     def version(self):
         """The API version being tested."""
 
diff --git a/keystoneclient/v3/contrib/federation/base.py b/keystoneclient/v3/contrib/federation/base.py
index 98567a232..2b404c202 100644
--- a/keystoneclient/v3/contrib/federation/base.py
+++ b/keystoneclient/v3/contrib/federation/base.py
@@ -25,7 +25,8 @@ class EntityManager(base.Manager):
 
     resource_class = None
 
-    @abc.abstractproperty
+    @property
+    @abc.abstractmethod
     def object_type(self):
         raise exceptions.MethodNotImplemented