[Zope-Checkins] SVN:	Zope/branches/gsoc-python-2.5/lib/python/zExceptions/__init__.py	- Use stacklevel=2 to show calling site
    Sidnei da Silva 
    sidnei at enfoldsystems.com
       
    Fri Oct 10 11:08:48 EDT 2008
    
    
  
Log message for revision 91986:
   - Use stacklevel=2 to show calling site
Changed:
  U   Zope/branches/gsoc-python-2.5/lib/python/zExceptions/__init__.py
-=-
Modified: Zope/branches/gsoc-python-2.5/lib/python/zExceptions/__init__.py
===================================================================
--- Zope/branches/gsoc-python-2.5/lib/python/zExceptions/__init__.py	2008-10-10 15:07:37 UTC (rev 91985)
+++ Zope/branches/gsoc-python-2.5/lib/python/zExceptions/__init__.py	2008-10-10 15:08:47 UTC (rev 91986)
@@ -56,7 +56,7 @@
 
     warnings.warn('String exceptions are deprecated starting '
                   'with Python 2.5 and will be removed in a '
-                  'future release', DeprecationWarning)
+                  'future release', DeprecationWarning, stacklevel=2)
 
     n = None
     if __builtins__.has_key(t):
    
    
More information about the Zope-Checkins
mailing list