Message121181
Just call warnings.warn with an appropriate message, a category of DeprecationWarning and a stacklevel of 2 (so the warning will refer to the function's caller rather than to the pydoc code).
It's basically the example from the warnings.warn docs. |
|
Date |
User |
Action |
Args |
2010-11-14 07:40:12 | ncoghlan | set | recipients:
+ ncoghlan, ping, georg.brandl, belopolsky, giampaolo.rodola, ron_adam, eric.araujo, r.liebscher, srid, BreamoreBoy |
2010-11-14 07:40:12 | ncoghlan | set | messageid: <1289720412.26.0.75698795903.issue2001@psf.upfronthosting.co.za> |
2010-11-14 07:40:10 | ncoghlan | link | issue2001 messages |
2010-11-14 07:40:10 | ncoghlan | create | |
|