def subfolders(path):
    """
    Decompose a path string into a list of subfolders

    Eg Convert 'apps/dashboard/ranges' into
       ['apps', 'apps/dashboard', 'apps/dashboard/ranges']
    """
    folders = []
    while ('/', '') not in path:
        folders.append(path)
        path = os.path.dirname(path)
    folders.reverse()
    return folders
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/core/customisation.py/subfolders/swapped operands of `not in`