def decode_slice(slc):
    ret = []
    for x in slc.start, slc.stop, slc.step:
        if hasattr(x, '__index__'):
            x = x.__index__()
        ret.append(x)
    return tuple(ret)
Test reverting to old exploration versions.
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/util/langhelpers.py/decode_slice--crossover with--dataset/ETHPy150Open oppia/oppia/core/controllers/editor_test.py/VersioningIntegrationTest.test_reverting_to_old_exploration