From: Benjamin Peterson <benjamin@python.org>
Date: Mon, 18 Aug 2008 19:01:20 +0000 (+0000)
Subject: fix bsddb get_name and set_daemon usage
X-Git-Tag: v3.0b3~51
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6682141062efcfe2949cf876d48e61175a041a9;p=python

fix bsddb get_name and set_daemon usage
---

diff --git a/Lib/bsddb/test/test_lock.py b/Lib/bsddb/test/test_lock.py
index 0467d834d5..99adb7ef84 100644
--- a/Lib/bsddb/test/test_lock.py
+++ b/Lib/bsddb/test/test_lock.py
@@ -117,7 +117,7 @@ class LockingTestCase(unittest.TestCase):
         deadlock_detection.end=False
         deadlock_detection.count=0
         t=Thread(target=deadlock_detection)
-        t.set_daemon(True)
+        t.daemon = True
         t.start()
         self.env.set_timeout(100000, db.DB_SET_LOCK_TIMEOUT)
         anID = self.env.lock_id()
@@ -143,7 +143,7 @@ class LockingTestCase(unittest.TestCase):
             self.assertTrue(deadlock_detection.count>0)
 
     def theThread(self, sleepTime, lockType):
-        name = current_thread().get_name()
+        name = current_thread().name
         if lockType ==  db.DB_LOCK_WRITE:
             lt = "write"
         else: