[CMF-checkins] SVN: CMF/trunk/CMFCore/utils.py Display offending line when warning about product_name deprecation.

Florent Guillaume fg at nuxeo.com
Fri Jul 29 11:44:49 EDT 2005


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):



More information about the CMF-checkins mailing list