fix pylint helper methods: need a classmathod in cwconfig.py oldstable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Wed, 16 Mar 2011 09:45:57 +0100
brancholdstable
changeset 7086 0d63937991a5
parent 7084 dc5cdfec1393
child 7092 076c5be627f6
fix pylint helper methods: need a classmathod in cwconfig.py
cwconfig.py
--- a/cwconfig.py	Wed Mar 16 09:40:11 2011 +0100
+++ b/cwconfig.py	Wed Mar 16 09:45:57 2011 +0100
@@ -1184,7 +1184,10 @@
 
     # these are overridden by set_log_methods below
     # only defining here to prevent pylint from complaining
-    info = warning = error = critical = exception = debug = lambda msg,*a,**kw: None
+    @classmethod
+    def debug(cls, msg, *a, **kw):
+        pass
+    info = warning = error = critical = exception = debug 
 
 set_log_methods(CubicWebNoAppConfiguration,
                 logging.getLogger('cubicweb.configuration'))