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) from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
class HostLog(object): class HostLog:
def __init__(self, host): def __init__(self, host):
self.host = host self.host = host

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

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

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

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

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

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

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

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

@ -21,7 +21,7 @@ __metaclass__ = type
#from ansible.common.errors import AnsibleError #from ansible.common.errors import AnsibleError
class Attribute(object): class Attribute:
def __init__(self, isa=None, private=False, default=None): 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.playbook.attribute import Attribute, FieldAttribute
from ansible.parsing import load as ds_load from ansible.parsing import load as ds_load
class Base(object): class Base:
def __init__(self): def __init__(self):

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

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

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

Loading…
Cancel
Save