shared list bug fix

This commit is contained in:
Joe Shochet 2004-09-23 01:55:09 +00:00
parent b84fde482b
commit 47a6d4716f

View File

@ -21,8 +21,11 @@ class Pool:
notify = DirectNotifyGlobal.directNotify.newCategory("Pool") notify = DirectNotifyGlobal.directNotify.newCategory("Pool")
def __init__(self, free=[]): def __init__(self, free=None):
self.__free = free if free:
self.__free = free
else:
self.__free = []
self.__used = [] self.__used = []
def add(self, item): def add(self, item):