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

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to