Update of /cvs-repository/Packages/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv11118

Modified Files:
      Tag: Zope-2_7-branch
        Owned.py 
Log Message:
Merge from 37633 on trunk:
Display offending line when warning about getOwner(1) deprecation.


=== Packages/AccessControl/Owned.py 1.19.46.4 => 1.19.46.5 ===
--- Packages/AccessControl/Owned.py:1.19.46.4   Fri Mar 12 11:58:29 2004
+++ Packages/AccessControl/Owned.py     Mon Aug  1 16:09:15 2005
@@ -76,7 +76,7 @@
             import warnings
             warnings.warn('Owned.getOwner(1) is deprecated; '
                           'please use getOwnerTuple() instead.',
-                          DeprecationWarning)
+                          DeprecationWarning, stacklevel=2)
 
 
         owner=aq_get(self, '_owner', None, 1)

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

Reply via email to