Registered upkeep with atexit.

This commit is contained in:
Jeremy Fincher 2003-09-12 07:48:01 +00:00
parent da8ee2a758
commit a169b64740

View File

@ -69,8 +69,6 @@ def flush():
for f in flushers: for f in flushers:
f() f()
atexit.register(flush)
try: try:
ignore(tempvars) ignore(tempvars)
except NameError: except NameError:
@ -90,6 +88,8 @@ def upkeep(): # Function to be run on occasion to do upkeep stuff.
debug.msg(msg, 'verbose') debug.msg(msg, 'verbose')
return collected return collected
atexit.register(upkeep)
''' '''
def superReload(oldmodule): def superReload(oldmodule):
### ###