bring back the old API

This commit is contained in:
Benjamin Peterson 2008-08-18 18:13:17 +00:00
parent a9b2222de4
commit d810626f99
1 changed files with 12 additions and 0 deletions

View File

@ -683,6 +683,18 @@ class Thread(_Verbose):
raise RuntimeError("cannot set daemon status of active thread");
self.__daemonic = daemonic
def isDaemon(self):
return self.daemon
def setDaemon(self, daemonic):
self.daemon = daemonic
def getName(self):
return self.name
def setName(self, name):
self.name = name
# The timer class was contributed by Itamar Shtull-Trauring
def Timer(*args, **kwargs):