def ensure_list(s, copy=False, iterate=True):
    'Given not a list, would place it into a list. If None - empty list is returned\n\n    Parameters\n    ----------\n    s: list or anything\n    copy: bool, optional\n      If list is passed, it would generate a shallow copy of the list\n    iterate: bool, optional\n      If it is not a list, but something iterable (but not a str)\n      iterate over it.\n    '
    return ensure_iter(s, list, copy=copy, iterate=iterate)
Given not a list, would place it into a list. If None - empty list is returned

Parameters
----------
s: list or anything
copy: bool, optional
  If list is passed, it would generate a shallow copy of the list
iterate: bool, optional
  If it is not a list, but something iterable (but not a str)
  iterate over it.
def ensure_list(s, copy=False, iterate=True):
    'Given not a list, would place it into a list. If None - empty list is returned\n\n    Parameters\n    ----------\n    s: list or anything\n    copy: bool, optional\n      If list is passed, it would generate a shallow copy of the list\n    iterate: bool, optional\n      If it is not a list, but something iterable (but not a str)\n      iterate over it.\n    '
    return ensure_iter(s, list, copy=copy, iterate=iterate)