Added fix for msvcrt.heapmin not working in Windows 9x.

This commit is contained in:
Jeremy Fincher 2003-10-09 17:24:28 +00:00
parent 8df7fb6064
commit b7f4cbe7d8

View File

@ -82,7 +82,10 @@ def upkeep(): # Function to be run on occasion to do upkeep stuff.
"""Does upkeep (like flushing, garbage collection, etc.)"""
collected = gc.collect()
if os.name == 'nt':
try:
msvcrt.heapmin()
except IOError: # Win98 sux0rs!
pass
if gc.garbage:
debug.msg('Uncollectable garbage: %s' % gc.garbage, 'normal')
if 'noflush' not in tempvars: