mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Added fix for msvcrt.heapmin not working in Windows 9x.
This commit is contained in:
parent
8df7fb6064
commit
b7f4cbe7d8
@ -82,7 +82,10 @@ def upkeep(): # Function to be run on occasion to do upkeep stuff.
|
|||||||
"""Does upkeep (like flushing, garbage collection, etc.)"""
|
"""Does upkeep (like flushing, garbage collection, etc.)"""
|
||||||
collected = gc.collect()
|
collected = gc.collect()
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
|
try:
|
||||||
msvcrt.heapmin()
|
msvcrt.heapmin()
|
||||||
|
except IOError: # Win98 sux0rs!
|
||||||
|
pass
|
||||||
if gc.garbage:
|
if gc.garbage:
|
||||||
debug.msg('Uncollectable garbage: %s' % gc.garbage, 'normal')
|
debug.msg('Uncollectable garbage: %s' % gc.garbage, 'normal')
|
||||||
if 'noflush' not in tempvars:
|
if 'noflush' not in tempvars:
|
||||||
|
Loading…
Reference in New Issue
Block a user