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

pull/9325/merge
Toshio Kuratomi 10 years ago
parent acf4bc95a3
commit eafa718be1

@ -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

@ -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

@ -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)

@ -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

@ -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

@ -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"):

@ -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:

@ -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

@ -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 = []

@ -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):

@ -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):

@ -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

@ -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

@ -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.

Loading…
Cancel
Save