Logo Search packages:      
Sourcecode: abakus version File versions  Download package

exitfuncs.py

_exithandlers=[]
def _run_exitfuncs():
    while _exithandlers:
        func, targs, kargs= _exithandlers.pop()
        apply(func, targs, kargs)
def register(func, *targs, **kargs):
    _exithandlers.append((func, targs, kargs))
import sys
try:
    x=sys.exitfunc
    if x != _run_exitfuncs:
        register(x)
except AttributeError:
    pass
sys.exitfunc=_run_exitfuncs
del sys

Generated by  Doxygen 1.6.0   Back to index