def walk_parents(path):
    while os.path.splitdrive(path)[1] != os.sep:
        yield path
        path = os.path.dirname(path)
Constructor that creates oauth2 consumer and client.
dataset/ETHPy150Open reviewboard/rbtools/rbtools/utils/filesystem.py/walk_parents--crossover with--dataset/ETHPy150Open contextio/Python-ContextIO/contextio/lib/api.py/Api.__init__