~roadmr/ubuntu/raring/checkbox/0.15.6

« back to all changes in this revision

Viewing changes to checkbox/contrib/REThread.py

"[r=jeffmarcom][bug=1097866][author=roadmr] automatic merge by tarmac"

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
    def __init__(self, group=None, target=None, name=None, args=(), kwargs={},
21
21
            verbose=None):
22
22
        '''Initialize Thread, identical to threading.Thread.__init__().'''
23
 
 
24
 
        threading.Thread.__init__(self, group, target, name, args, kwargs,
25
 
            verbose)
 
23
        #Note that due to api differences in python (verbose disappeared
 
24
        #at some point before 3.3 and got replaced by daemon), we just
 
25
        #ignore the verbose attribute. It's not used anywhere in checkbox
 
26
        #so this is safe for our purposes.
26
27
        self.__target = target
27
28
        self.__args = args
28
29
        self.__kwargs = kwargs
29
30
        self._retval = None
30
31
        self._exception = None
31
32
 
 
33
        threading.Thread.__init__(self)
 
34
 
32
35
    def run(self):
33
36
        '''Run target function, identical to threading.Thread.run().'''
34
37