�
�Udac @ s; d Z d d l j j Z d � Z d e f d � � YZ d S( s* Support class for NetApp ansible modules i����Nc C s | d k r d St | � t k rO t | � t k rO | j � } | j � } n t | � t k r� t | � t k r� g | D]* } t | � t k r� | j � n | ^ qz } g | D]* } t | � t k r� | j � n | ^ q� } | j � | j � n | | k | | k S( s�
Python 3 does not have a cmp function, this will do the cmp.
:param a: first object to check
:param b: second object to check
:return:
i����N( t Nonet typet strt lowert listt sort( t at bt x( ( sF /usr/lib/python2.7/site-packages/ansible/module_utils/netapp_module.pyt cmp"