fix memory leak (see http://bugs.python.org/issue1469629)
This commit is contained in:
parent
c396be96d2
commit
1ea6594785
|
@ -23,7 +23,12 @@ class Input(dict):
|
||||||
params=params, nick=nick, user=user, host=host,
|
params=params, nick=nick, user=user, host=host,
|
||||||
paraml=paraml, msg=msg, server=conn.server, chan=chan,
|
paraml=paraml, msg=msg, server=conn.server, chan=chan,
|
||||||
say=say, reply=reply, pm=pm, bot=bot)
|
say=say, reply=reply, pm=pm, bot=bot)
|
||||||
self.__dict__ = self # permits attribute access to values
|
|
||||||
|
def __getattr__(self, key):
|
||||||
|
return self[key]
|
||||||
|
|
||||||
|
def __setattr__(self, key value):
|
||||||
|
self[key] = value
|
||||||
|
|
||||||
|
|
||||||
def run(func, input):
|
def run(func, input):
|
||||||
|
|
Loading…
Reference in New Issue