fix pylint helper methods: need a classmathod in cwconfig.py stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Wed, 16 Mar 2011 09:45:57 +0100
branchstable
changeset 7087 376314ebf273
parent 7085 36e91d19188b
child 7088 76e0dba5f8f3
fix pylint helper methods: need a classmathod in cwconfig.py
cwconfig.py
--- a/cwconfig.py	Wed Mar 16 09:40:56 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'))