Skip to content

Commit

Permalink
Merge pull request #5158 from kivy/fix_deprecated
Browse files Browse the repository at this point in the history
Fix deprecate notes, add decorator where missing
  • Loading branch information
KeyWeeUsr committed May 7, 2017
2 parents 9fa618d + a56cb2d commit a63ddd4
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 21 deletions.
3 changes: 1 addition & 2 deletions kivy/adapters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
.. versionadded:: 1.5.0
.. note::
.. deprecated:: 1.10.0
The feature has been deprecated.
An adapter is a mediating controller-type class that processes and presents
Expand Down
3 changes: 1 addition & 2 deletions kivy/adapters/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
.. versionadded:: 1.5
.. note::
.. deprecated:: 1.10.0
The feature has been deprecated.
.. warning::
Expand Down
3 changes: 1 addition & 2 deletions kivy/adapters/args_converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
.. versionadded:: 1.5
.. note::
.. deprecated:: 1.10.0
The feature has been deprecated.
The default list item args converter for list adapters is a function (shown
Expand Down
5 changes: 3 additions & 2 deletions kivy/adapters/dictadapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
.. versionadded:: 1.5
.. note::
.. deprecated:: 1.10.0
The feature has been deprecated.
.. warning::
Expand All @@ -26,6 +25,7 @@

from kivy.properties import ListProperty, DictProperty
from kivy.adapters.listadapter import ListAdapter
from kivy.utils import deprecated


class DictAdapter(ListAdapter):
Expand Down Expand Up @@ -55,6 +55,7 @@ class DictAdapter(ListAdapter):
to None.
'''

@deprecated
def __init__(self, **kwargs):
if 'sorted_keys' in kwargs:
if type(kwargs['sorted_keys']) not in (tuple, list):
Expand Down
5 changes: 3 additions & 2 deletions kivy/adapters/listadapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
.. versionadded:: 1.5
.. note::
.. deprecated:: 1.10.0
The feature has been deprecated.
.. warning::
Expand Down Expand Up @@ -55,6 +54,7 @@
from kivy.properties import OptionProperty
from kivy.properties import NumericProperty
from kivy.lang import Builder
from kivy.utils import deprecated


class ListAdapter(Adapter, EventDispatcher):
Expand Down Expand Up @@ -181,6 +181,7 @@ class ListAdapter(Adapter, EventDispatcher):

__events__ = ('on_selection_change', )

@deprecated
def __init__(self, **kwargs):
super(ListAdapter, self).__init__(**kwargs)

Expand Down
3 changes: 1 addition & 2 deletions kivy/adapters/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
.. versionadded:: 1.5
.. note::
.. deprecated:: 1.10.0
The feature has been deprecated.
.. warning::
Expand Down
5 changes: 3 additions & 2 deletions kivy/adapters/simplelistadapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
.. versionadded:: 1.5
.. note::
.. deprecated:: 1.10.0
The feature has been deprecated.
.. warning::
Expand All @@ -24,6 +23,7 @@
from kivy.adapters.adapter import Adapter
from kivy.properties import ListProperty
from kivy.lang import Builder
from kivy.utils import deprecated


class SimpleListAdapter(Adapter):
Expand All @@ -45,6 +45,7 @@ class SimpleListAdapter(Adapter):
defaults to [].
'''

@deprecated
def __init__(self, **kwargs):
if 'data' not in kwargs:
raise Exception('list adapter: input must include data argument')
Expand Down
2 changes: 1 addition & 1 deletion kivy/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.. versionadded:: 1.3.0
.. versionchanged:: 1.10.0
.. deprecated:: 1.10.0
The interactive launcher has been deprecated.
The :class:`InteractiveLauncher` provides a user-friendly python shell
Expand Down
3 changes: 1 addition & 2 deletions kivy/uix/abstractview.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
.. versionadded:: 1.5
.. note::
.. deprecated:: 1.10.0
The feature has been deprecated.
.. warning::
Expand Down
3 changes: 1 addition & 2 deletions kivy/uix/listview.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
.. versionadded:: 1.5
.. note::
.. deprecated:: 1.10.0
ListView has been deprecated, use
:class:`~kivy.uix.recycleview.RecycleView` instead.
Expand Down
3 changes: 1 addition & 2 deletions kivy/uix/selectableview.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
SelectableView
==============
.. note::
.. deprecated:: 1.10.0
The feature has been deprecated.
This module houses the :class:`SelectableView` mixin class. This is used by
Expand Down

0 comments on commit a63ddd4

Please sign in to comment.