mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +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:
@@ -23,10 +23,9 @@ __metaclass__ = type
|
||||
|
||||
from abc import ABCMeta, abstractmethod
|
||||
|
||||
from six import add_metaclass
|
||||
from six import with_metaclass
|
||||
|
||||
@add_metaclass(ABCMeta)
|
||||
class InventoryParser:
|
||||
class InventoryParser(with_metaclass(ABCMeta, object)):
|
||||
'''Abstract Base Class for retrieving inventory information
|
||||
|
||||
Any InventoryParser functions by taking an inven_source. The caller then
|
||||
|
||||
Reference in New Issue
Block a user