Log message for revision 37544:
  Display offending line when warning about product_name deprecation.
  

Changed:
  U   CMF/trunk/CMFCore/utils.py

-=-
Modified: CMF/trunk/CMFCore/utils.py
===================================================================
--- CMF/trunk/CMFCore/utils.py  2005-07-29 15:43:50 UTC (rev 37543)
+++ CMF/trunk/CMFCore/utils.py  2005-07-29 15:44:47 UTC (rev 37544)
@@ -365,7 +365,7 @@
         self.tools = tools
         if product_name is not None:
             warn("The product_name parameter of ToolInit is now ignored",
-                 DeprecationWarning)
+                 DeprecationWarning, stacklevel=2)
         self.icon = icon
 
     def initialize(self, context):

_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins

Reply via email to