From b7f4cbe7d808b2550be366afbdd41c59d6243423 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 9 Oct 2003 17:24:28 +0000 Subject: [PATCH] Added fix for msvcrt.heapmin not working in Windows 9x. --- src/world.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/world.py b/src/world.py index 383c16b02..998c23088 100644 --- a/src/world.py +++ b/src/world.py @@ -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': - msvcrt.heapmin() + try: + msvcrt.heapmin() + except IOError: # Win98 sux0rs! + pass if gc.garbage: debug.msg('Uncollectable garbage: %s' % gc.garbage, 'normal') if 'noflush' not in tempvars: