def clearingException():
    def clearit():
        try:
            if sys.version_info[0] < 3:
                sys.exc_clear()
        except __HOLE__:
            pass

    try:
        raise KeyError
    except:
        print("Before clearing, it's", sys.exc_info())
        clearit()

        print("After clearing, it's", sys.exc_info())
dataset/ETHPy150Open kayhayen/Nuitka/tests/basics/ExceptionRaising.py/clearingException