dhunter/core/log.py
def _dict_to_list(data_to_convert, color=None):
        """Converts dictionary elements into list.

        Args:
          data_to_convert: dictionary to convert
          color: color code (i.e. '%red%' for each row)

        Returns:
          list with converted data.

        """
        if not isinstance(data_to_convert, dict):
            return data_to_convert

        array = []
        for (key, val) in data_to_convert.items():
            if color is not None:
                array.append('{color}{key}%reset% : {val}'.format(color=color, key=key, val=val))
            else:
                array.append('%s: %s' % (key, val))
        return array
Converts dictionary elements into list.

        Args:
          data_to_convert: dictionary to convert
          color: color code (i.e. '%red%' for each row)

        Returns:
          list with converted data.

        
Converts dictionary elements into list.
Converts dictionary elements into list .
def _dict_to_list(data_to_convert, color=None):
        if not isinstance(data_to_convert, dict):
            return data_to_convert
        array = []
        for (key, val) in data_to_convert.items():
            if color is not None:
                array.append('{color}{key}%reset% : {val}'.format(color=color, key=key, val=val))
            else:
                array.append('%s: %s' % (key, val))
        return array
def _dict_to_list ( data_to_convert , color = None ) : if not isinstance ( data_to_convert , dict ) : return data_to_convert array = [ ] for ( key , val ) in data_to_convert . items ( ) : if color is not None : array . append ( '{color}{key}%reset% : {val}' . format ( color = color , key = key , val = val ) ) else : array . append ( '%s: %s' % ( key , val ) ) return array
Converts dictionary elements into list.
Converts dictionary elements into list .
"""Converts dictionary elements into list.

        Args:
          data_to_convert: dictionary to convert
          color: color code (i.e. '%red%' for each row)

        Returns:
          list with converted data.

        """
list with converted data.
list with converted data .
data_to_convert
dictionary to convert
dictionary to convert
color
None