def _string_or_list()

in clay/mail.py [0:0]


def _string_or_list(obj):
    '''
    If obj is a string, it's converted to a single element list, otherwise
    it's just returned as-is under the assumption that it's already a list. No
    further type checking is performed.
    '''

    if isinstance(obj, six.string_types):
        return [obj]
    else:
        return obj