| Tor Norbye | 3a2425a | 2013-11-04 10:16:08 -0800 | [diff] [blame^] | 1 | class Foo: |
| 2 | @property | ||||
| 3 | def bar(self): | ||||
| 4 | import warnings | ||||
| 5 | warnings.warn("this is deprecated", DeprecationWarning, 2) | ||||
| 6 | |||||
| 7 | foo = Foo() | ||||
| 8 | foo.<warning descr="this is deprecated">bar</warning> | ||||