

def get_dependencies(target, migrations):
    forwards = list
    backwards = list
    if (target is None):
        backwards = migrations[0].backwards_plan
    else:
        forwards = target.forwards_plan
        migration_before_here = target.next()
        if migration_before_here:
            backwards = migration_before_here.backwards_plan
    return (forwards, backwards)

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/South-1.0.2/south/migration/__init__.py get_dependencies/original