[config] include cube name in warning
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 23 Apr 2010 11:10:09 +0200
changeset 5381 1e6f23066067
parent 5380 a4e7e87d315f
child 5382 cb5dfea92285
[config] include cube name in warning
cwconfig.py
--- a/cwconfig.py	Fri Apr 23 09:17:08 2010 +0200
+++ b/cwconfig.py	Fri Apr 23 11:10:09 2010 +0200
@@ -470,8 +470,8 @@
             except AttributeError:
                 # bw compat
                 if hasattr(pkginfo, oldkey):
-                    warn('[3.8] %s is deprecated, use %s dict' % (oldkey, key),
-                         DeprecationWarning)
+                    warn('[3.8] cube %s: %s is deprecated, use %s dict'
+                         % (cube, oldkey, key), DeprecationWarning)
                     deps = getattr(pkginfo, oldkey)
                 else:
                     deps = {}