hsm.core.listify

listify(obj)

Wraps a passed object into a list in case it has not been a list, tuple before. Returns an empty list in case obj is None. :param obj: instance to be converted into a list.

Returns:

May also return a tuple in case obj has been a tuple before.

Return type:

list