dhunter/core/log.py
def _to_list(data):
        """Converts certain data types (str, unicode) into list.

        Args:
          data: data to convert

        Returns:
          list with converted data
        """
        # variable types to be converted
        # noinspection PyCompatibility
        types = [str]

        for data_type in types:
            if isinstance(data, data_type):
                return [data]

        return data
Converts certain data types (str, unicode) into list.

        Args:
          data: data to convert

        Returns:
          list with converted data
        
Converts certain data types (str, unicode) into list.
Converts certain data types ( str unicode ) into list .
def _to_list(data):
        types = [str]
        for data_type in types:
            if isinstance(data, data_type):
                return [data]
        return data
def _to_list ( data ) : types = [ str ] for data_type in types : if isinstance ( data , data_type ) : return [ data ] return data
Converts certain data types (str, unicode) into list.
Converts certain data types ( str unicode ) into list .
"""Converts certain data types (str, unicode) into list.

        Args:
          data: data to convert

        Returns:
          list with converted data
        """ # variable types to be converted # noinspection PyCompatibility
list with converted data
list with converted data
data
data to convert
data to convert