def compatibility_mode():
    setattr(EventsCodes, 'ALL_EVENTS', ALL_EVENTS)
    for evname in globals():
        if evname.startswith('IN_'):
            setattr(EventsCodes, evname, globals()[evname])
    global COMPATIBILITY_MODE
    COMPATIBILITY_MODE = True
Returns the number of blocks in which the token is nested.
dataset/ETHPy150Open seb-m/pyinotify/python2/pyinotify.py/compatibility_mode--crossover with--dataset/ETHPy150Open google/closure-linter/closure_linter/statetracker.py/StateTracker.BlockDepth