From 533fbd27627944abfd5c0c408b6f8109d4247cbe Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 26 Aug 2004 02:29:48 +0000 Subject: [PATCH] Proper fix for problem URL tests exposed --- src/callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callbacks.py b/src/callbacks.py index 65c7feedc..39c1cb68b 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -751,7 +751,7 @@ class CommandThread(threading.Thread): """Just does some extra logging and error-recovery for commands that need to run in threads. """ - def __init__(self, target=None, args=None, kwargs=None): + def __init__(self, target=None, args=(), kwargs={}): (self.name, self.command, self.cb) = args world.threadsSpawned += 1 threadName = 'Thread #%s (for %s.%s)' % (world.threadsSpawned,