Repository :
http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
---------------------------------------------------------------
commit 1d112fd13ebaf1193f7da36c2ee1ecf8b207a612
Author: Peter Hatina <phatina(a)redhat.com>
Date: Wed Jul 31 13:04:53 2013 +0200
unify ctor-s calls
---------------------------------------------------------------
cli/lmi/shell/LMIClass.py | 2 +-
cli/lmi/shell/LMIConstantValues.py | 4 ++--
cli/lmi/shell/LMIFormatter.py | 4 ++--
cli/lmi/shell/LMIInstance.py | 2 +-
cli/lmi/shell/LMIMethod.py | 2 +-
cli/lmi/shell/LMINamespace.py | 2 +-
cli/lmi/shell/LMIShellClient.py | 2 +-
7 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/cli/lmi/shell/LMIClass.py b/cli/lmi/shell/LMIClass.py
index fc07dea..a82d2fb 100644
--- a/cli/lmi/shell/LMIClass.py
+++ b/cli/lmi/shell/LMIClass.py
@@ -46,7 +46,7 @@ class LMIClass(LMIBaseObject):
namespace -- LMINamespace object used for CIMInstances retrieval
classname -- string containing CIM class name
"""
- super(self.__class__, self).__init__()
+ super(LMIClass, self).__init__()
self.__dict__["_client"] = client
self.__dict__["_namespace"] = namespace
self.__dict__["_cim_class"] = None
diff --git a/cli/lmi/shell/LMIConstantValues.py b/cli/lmi/shell/LMIConstantValues.py
index d783641..79449e4 100644
--- a/cli/lmi/shell/LMIConstantValues.py
+++ b/cli/lmi/shell/LMIConstantValues.py
@@ -115,7 +115,7 @@ class LMIConstantValuesParamProp(LMIConstantValues):
necessary member "type" which is needed for proper casting.
"""
self._cast_type = cim_property.type
- super(self.__class__, self).__init__(cim_property)
+ super(LMIConstantValuesParamProp, self).__init__(cim_property)
class LMIConstantValuesMethodReturnType(LMIConstantValues):
"""
@@ -129,4 +129,4 @@ class LMIConstantValuesMethodReturnType(LMIConstantValues):
cim_method -- CIMMethod object
"""
self._cast_type = cim_method.return_type
- super(self.__class__, self).__init__(cim_method)
+ super(LMIConstantValuesMethodReturnType, self).__init__(cim_method)
diff --git a/cli/lmi/shell/LMIFormatter.py b/cli/lmi/shell/LMIFormatter.py
index c5fef30..e11f44f 100644
--- a/cli/lmi/shell/LMIFormatter.py
+++ b/cli/lmi/shell/LMIFormatter.py
@@ -159,7 +159,7 @@ class LMIXmlFormatter(LMIFormatter):
Arguments:
xml -- XML element of pywbem.cim_xml.CLASS, retrieved by CIMClass.tocimxml()
"""
- super(self.__class__, self).__init__()
+ super(LMIXmlFormatter, self).__init__()
self._xml = xml
def __format_class_property_content(self, node, indent=0, sub_indent=0, width=80,
f=sys.stdout):
@@ -419,7 +419,7 @@ class LMIMofFormatter(LMIFormatter):
Arguments:
mof -- string containing a MOF representation of a object
"""
- super(self.__class__, self).__init__()
+ super(LMIMofFormatter, self).__init__()
self._mof = mof
def format(self, indent=0, sub_indent=0, width=80, f=sys.stdout):
diff --git a/cli/lmi/shell/LMIInstance.py b/cli/lmi/shell/LMIInstance.py
index a58a0d8..80218dd 100644
--- a/cli/lmi/shell/LMIInstance.py
+++ b/cli/lmi/shell/LMIInstance.py
@@ -44,7 +44,7 @@ class LMIInstance(LMIBaseObject):
lmi_class -- LMIClass object, creation class of the instance
cim_instance -- wrapped CIMInstance object
"""
- super(self.__class__, self).__init__()
+ super(LMIInstance, self).__init__()
# We use __dict__ to avoid recursion potentially caused by
# combo __setattr__ and __getattr__
self.__dict__["_deleted"] = False
diff --git a/cli/lmi/shell/LMIMethod.py b/cli/lmi/shell/LMIMethod.py
index 7ef1879..28c3db6 100644
--- a/cli/lmi/shell/LMIMethod.py
+++ b/cli/lmi/shell/LMIMethod.py
@@ -79,7 +79,7 @@ class LMIMethod(LMIBaseObject):
sync_method -- bool flag indicating, if we are trying to perform
a synchronous method call
"""
- super(self.__class__, self).__init__()
+ super(LMIMethod, self).__init__()
self._client = client
self._lmi_instance = lmi_instance
self._method = lmi_instance._lmi_class._cim_class.methods[method]
diff --git a/cli/lmi/shell/LMINamespace.py b/cli/lmi/shell/LMINamespace.py
index e0ad42c..72a5f4d 100644
--- a/cli/lmi/shell/LMINamespace.py
+++ b/cli/lmi/shell/LMINamespace.py
@@ -137,7 +137,7 @@ class LMINamespaceRoot(LMINamespace):
Arguments:
client -- LMIShellClient object used for CIMOM communication
"""
- super(self.__class__, self).__init__(client, "root")
+ super(LMINamespaceRoot, self).__init__(client, "root")
@property
def cimv2(self):
diff --git a/cli/lmi/shell/LMIShellClient.py b/cli/lmi/shell/LMIShellClient.py
index 21b0875..6ef012f 100644
--- a/cli/lmi/shell/LMIShellClient.py
+++ b/cli/lmi/shell/LMIShellClient.py
@@ -44,7 +44,7 @@ class LMIShellClient(LMIBaseClient):
CIMOM, it uses unix socket for the connection; default value is
CONN_TYPE_WBEM
"""
- super(self.__class__, self).__init__(hostname, username, password, conn_type)
+ super(LMIShellClient, self).__init__(hostname, username, password, conn_type)
self._interactive = interactive
self._cache = LMIShellCache(use_cache)