Commit c500d398 authored by Florent Guillaume's avatar Florent Guillaume

Merge from 37633 on trunk:

Display offending line when warning about getOwner(1) deprecation.
parent 03fb4e1b
......@@ -77,7 +77,7 @@ class Owned(ExtensionClass.Base):
import warnings
warnings.warn('Owned.getOwner(1) is deprecated; '
'please use getOwnerTuple() instead.',
DeprecationWarning)
DeprecationWarning, stacklevel=2)
owner=aq_get(self, '_owner', None, 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment