Martin Sivák has uploaded a new change for review.

Change subject: Make FSMLoggerAdapter compatible with Python 2.6
......................................................................

Make FSMLoggerAdapter compatible with Python 2.6

Python 2.6 does not use new style classes in the logging
subsystem, but the super call requires the parent to be
a new style class.

This patch updates the code to use the old way of calling
parent's constructor.

Change-Id: Ia02a3b7174554f174ad84ec1e22f565e62b69c32
Signed-off-by: Martin Sivak <msi...@redhat.com>
(cherry picked from commit caedc15e8b7f2e3bb79f22e715df0858f34b9379)
---
M ovirt_hosted_engine_ha/lib/fsm/machine.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-ha 
refs/changes/83/25283/1

diff --git a/ovirt_hosted_engine_ha/lib/fsm/machine.py 
b/ovirt_hosted_engine_ha/lib/fsm/machine.py
index 660362e..21eb5aa 100644
--- a/ovirt_hosted_engine_ha/lib/fsm/machine.py
+++ b/ovirt_hosted_engine_ha/lib/fsm/machine.py
@@ -13,7 +13,9 @@
     """
 
     def __init__(self, logger, fsm):
-        super(FSMLoggerAdapter, self).__init__(logger, None)
+        # super cannot be used here because Python 2.6
+        # does not derive logging classes from object
+        logging.LoggerAdapter.__init__(self, logger, None)
         self.fsm = fsm
 
     def process(self, msg, kwargs):


-- 
To view, visit http://gerrit.ovirt.org/25283
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia02a3b7174554f174ad84ec1e22f565e62b69c32
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-ha
Gerrit-Branch: ovirt-hosted-engine-ha-1.1
Gerrit-Owner: Martin Sivák <msi...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to