mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Older python-six from early RHEL and ubuntu do not have add_metaclass but do have with_metaclass
This commit is contained in:
5
lib/ansible/plugins/cache/base.py
vendored
5
lib/ansible/plugins/cache/base.py
vendored
@@ -20,11 +20,10 @@ __metaclass__ = type
|
||||
|
||||
from abc import ABCMeta, abstractmethod
|
||||
|
||||
from six import add_metaclass
|
||||
from six import with_metaclass
|
||||
|
||||
|
||||
@add_metaclass(ABCMeta)
|
||||
class BaseCacheModule:
|
||||
class BaseCacheModule(with_metaclass(ABCMeta, object)):
|
||||
|
||||
@abstractmethod
|
||||
def get(self, key):
|
||||
|
||||
Reference in New Issue
Block a user