Proper sphinx deprecation warning

This commit is contained in:
Danilo Bargen
2012-12-27 18:52:56 +01:00
parent 9e4a1bce5f
commit 59ff88ab57
+2 -2
View File
@@ -93,8 +93,8 @@ class BaseDefinition(object):
@property @property
def line_nr(self): def line_nr(self):
""" """
.. warning:: Deprecated! It's just here for backwards compatibility, .. deprecated:: 0.5.0
use `api_classes.BaseDefinition.line` instead. Use :attr:`.line` instead.
.. todo:: Remove! .. todo:: Remove!
""" """
warnings.warn("Use line instead.", DeprecationWarning) warnings.warn("Use line instead.", DeprecationWarning)