Fix for failing test in URL.

This commit is contained in:
Jeremy Fincher 2004-08-26 01:04:23 +00:00
parent 23eb75f33b
commit a8584ba898
1 changed files with 2 additions and 2 deletions

View File

@ -751,14 +751,14 @@ class CommandThread(threading.Thread):
"""Just does some extra logging and error-recovery for commands that need """Just does some extra logging and error-recovery for commands that need
to run in threads. to run in threads.
""" """
def __init__(self, target=None, args=None): def __init__(self, target=None, args=None, kwargs=None):
(self.name, self.command, self.cb) = args (self.name, self.command, self.cb) = args
world.threadsSpawned += 1 world.threadsSpawned += 1
threadName = 'Thread #%s (for %s.%s)' % (world.threadsSpawned, threadName = 'Thread #%s (for %s.%s)' % (world.threadsSpawned,
self.cb.name(), self.name) self.cb.name(), self.name)
log.debug('Spawning thread %s' % threadName) log.debug('Spawning thread %s' % threadName)
threading.Thread.__init__(self, target=target, threading.Thread.__init__(self, target=target,
name=threadName, args=args) name=threadName, args=args, kwargs=kwargs)
self.setDaemon(True) self.setDaemon(True)
self.originalThreaded = self.cb.threaded self.originalThreaded = self.cb.threaded
self.cb.threaded = True self.cb.threaded = True