From: Benjamin Peterson Date: Mon, 18 Aug 2008 18:13:17 +0000 (+0000) Subject: bring back the old API X-Git-Tag: v2.6b3~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d810626f99e7033f8e2ea3506f6430bc9b261d0a;p=thirdparty%2FPython%2Fcpython.git bring back the old API --- diff --git a/Lib/threading.py b/Lib/threading.py index c393fe5541cc..a6522d63677d 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -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):