summaryrefslogtreecommitdiff
path: root/efl/elementary/need.pyx
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2013-10-25 02:03:31 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2013-10-25 02:09:29 +0300
commit3d852863369d20d43d9c2dca311637293966afae (patch)
tree5de04b0aa48219a37d5ca5b74ae84566eef921c4 /efl/elementary/need.pyx
parent4771ca5ccb7654119a67de72dc28020e091bc3b5 (diff)
Add arguments 'version' and 'message' to DEPRECATED decorator.
The decorator will automatically add a directive to the docstring and log a message when the function is called.
Diffstat (limited to 'efl/elementary/need.pyx')
-rw-r--r--efl/elementary/need.pyx8
1 files changed, 2 insertions, 6 deletions
diff --git a/efl/elementary/need.pyx b/efl/elementary/need.pyx
index 8f69e09..e17cb0f 100644
--- a/efl/elementary/need.pyx
+++ b/efl/elementary/need.pyx
@@ -15,7 +15,7 @@
15# You should have received a copy of the GNU Lesser General Public License 15# You should have received a copy of the GNU Lesser General Public License
16# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>. 16# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
17 17
18from efl.utils.deprecated import DEPRECATED 18from efl.utils.deprecated cimport DEPRECATED
19 19
20def need_efreet(): 20def need_efreet():
21 """need_efreet() -> bool 21 """need_efreet() -> bool
@@ -62,7 +62,7 @@ def need_sys_notify():
62 """ 62 """
63 return bool(elm_need_sys_notify()) 63 return bool(elm_need_sys_notify())
64 64
65@DEPRECATED 65@DEPRECATED("1.8", "Use :py:func:`need_eldbus` for eldbus (v2) support. Old API is deprecated.")
66def need_e_dbus(): 66def need_e_dbus():
67 """need_e_dbus() -> bool 67 """need_e_dbus() -> bool
68 68
@@ -75,10 +75,6 @@ def need_e_dbus():
75 :return: True if support exists and initialization succeeded. 75 :return: True if support exists and initialization succeeded.
76 :rtype: bool 76 :rtype: bool
77 77
78 .. deprecated:: 1.8
79 Use :py:func:`need_eldbus` for eldbus (v2) support. Old API is
80 deprecated.
81
82 """ 78 """
83 return bool(elm_need_eldbus()) 79 return bool(elm_need_eldbus())
84 80