r46927 - Update apidoc.
adiroiban-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org
| Newsgroups | gmane.comp.python.twisted.commits |
|---|---|
| Message-ID | <[email protected]> |
Author: adiroiban
Date: Sat Mar 5 17:15:50 2016
New Revision: 46927
Modified:
branches/deprecated-property-8124/twisted/python/deprecate.py
Log:
Update apidoc.
Modified: branches/deprecated-property-8124/twisted/python/deprecate.py
==============================================================================
--- branches/deprecated-property-8124/twisted/python/deprecate.py (original)
+++ branches/deprecated-property-8124/twisted/python/deprecate.py Sat Mar 5 17:15:50 2016
@@ -40,7 +40,12 @@
'''
Docstring for badProperty.
'''
- ...
+
+ @badProperty.setter
+ def badProperty(self, value):
+ '''
+ Setter sill also raise the deprecation warning.
+ '''
To mark module-level attributes as being deprecated you can use::
@@ -325,7 +330,10 @@
path.
@type replacement: C{str} or callable
- @since: 16.0.0
+ @return: A new property with deprecated setter and getter.
+ @rtype: C{property}
+
+ @since: 16.1.0
"""
class _DeprecatedProperty(property):