1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Remove inherit from object as it's no longer needed to determine new-style classes

This commit is contained in:
Toshio Kuratomi 2014-10-15 19:37:29 -04:00
parent acf4bc95a3
commit eafa718be1
14 changed files with 14 additions and 14 deletions

View file

@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
class HostLog(object):
class HostLog:
def __init__(self, host):
self.host = host

View file

@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
class HostPlaybookIterator(object):
class HostPlaybookIterator:
def __init__(self, host, playbook):
pass

View file

@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
class PlaybookExecutor(object):
class PlaybookExecutor:
def __init__(self, list_of_plays=[]):
# self.tqm = TaskQueueManager(forks)

View file

@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
class TaskExecutor(object):
class TaskExecutor:
def __init__(self, task, host):
pass

View file

@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
class TaskQueueManagerHostPlaybookIterator(object):
class TaskQueueManagerHostPlaybookIterator:
def __init__(self, host, playbook):
pass

View file

@ -21,7 +21,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
class Inventory(object):
class Inventory:
def __init__(self, host_list=C.DEFAULT_HOST_LIST, vault_password=None):
pass
def get_hosts(self, pattern="all"):

View file

@ -25,7 +25,7 @@ from ansible.errors import AnsibleParserError
from ansible.plugins import module_finder
from ansible.parsing.splitter import parse_kv
class ModuleArgsParser(object):
class ModuleArgsParser:
"""
There are several ways a module and argument set can be expressed:

View file

@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
class AnsibleBaseYAMLObject(object):
class AnsibleBaseYAMLObject:
'''
the base class used to sub-class python built-in objects
so that we can add attributes to them during yaml parsing

View file

@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
class Playbook(object):
class Playbook:
def __init__(self, filename):
self.ds = v2.utils.load_yaml_from_file(filename)
self.plays = []

View file

@ -21,7 +21,7 @@ __metaclass__ = type
#from ansible.common.errors import AnsibleError
class Attribute(object):
class Attribute:
def __init__(self, isa=None, private=False, default=None):

View file

@ -26,7 +26,7 @@ from six import iteritems, string_types
from ansible.playbook.attribute import Attribute, FieldAttribute
from ansible.parsing import load as ds_load
class Base(object):
class Base:
def __init__(self):

View file

@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
class Conditional(object):
class Conditional:
def __init__(self, task):
self._task = task

View file

@ -22,7 +22,7 @@ __metaclass__ = type
from errors import AnsibleError
from ansible.utils import list_union
class Tag(object):
class Tag:
def __init__(self, tags=[]):
assert isinstance(tags, list)
self._tags = tags

View file

@ -39,7 +39,7 @@ def push_basedir(basedir):
if basedir not in _basedirs:
_basedirs.insert(0, basedir)
class PluginLoader(object):
class PluginLoader:
'''
PluginLoader loads plugins from the configured plugin directories.