Commit 66435742 authored by Florent Guillaume's avatar Florent Guillaume

Display offending line when warning about getOwner(1) deprecation.

parent 2cbf8a29
......@@ -82,7 +82,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