Hello,
I want show a deprecation warning only if a argument of a function is set to 
False.

def foo(arg1, arg2, arg3 = False):

    if not arg3:
        arg3 = deprecation.deprecated(arg3, "arg3=False is deprecated.")

But that does not show anything. How do it correctly?

Thanks,

Florian
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to