�
�Udac @` s/ d d l m Z m Z m Z e Z d � Z d S( i ( t absolute_importt divisiont print_functionc C` s� t | j � � } t | � } xh | r� x[ | D]S } | j | � x= | j � D]/ } | | k rN | j | � | j | � qN qN Wq. Wq! W| S( s
Recursively search and find all subclasses of a given class
:arg cls: A python class
:rtype: set
:returns: The set of python classes which are the subclasses of `cls`.
In python, you can use a class's :py:meth:`__subclasses__` method to determine what subclasses
of a class exist. However, `__subclasses__` only goes one level deep. This function searches
each child class's `__subclasses__` method to find all of the descendent classes. It then
returns an iterable of the descendent classes.
( t sett __subclasses__t listt removet appendt add( t clst
subclassest to_visitt sct ssc( ( sF /usr/lib/python2.7/site-packages/ansible/module_utils/common/_utils.pyt get_all_subclasses s
N( t
__future__R R R t typet
__metaclass__R ( ( ( sF /usr/lib/python2.7/site-packages/ansible/module_utils/common/_utils.pyt <module> s
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]