From d3bfbcb0a2f11e145bbcefb4aa17db5af90d8713 Mon Sep 17 00:00:00 2001 From: Christian Van Wambeke Date: Fri, 29 Jun 2018 08:45:51 +0200 Subject: [PATCH] fix inexisting handler.get_name() python 2.6 --- src/loggingSimple.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/loggingSimple.py b/src/loggingSimple.py index 617ba7e..177b342 100755 --- a/src/loggingSimple.py +++ b/src/loggingSimple.py @@ -117,7 +117,8 @@ def getStrHandler(handler): h = handler # shortcut msg = "%s(name=%s)" cName = h.__class__.__name__ - res = msg % (cName, h.get_name()) + # get_name absent in logging 0.5.0.5 python 2.6 + res = msg % (cName, h._name) return res -- 2.39.2