Commits

Benjamin Peterson  committed db58924

fix old API names in test_ssl

  • Participants
  • Parent commits 28d93c9
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/test/test_ssl.py

                 self.sock.setblocking(1)
                 self.sslconn = None
                 threading.Thread.__init__(self)
-                self.setDaemon(True)
+                self.daemon = True
 
             def show_conn_details(self):
                 if self.server.certreqs == ssl.CERT_REQUIRED:
             self.port = test_support.bind_port(self.sock)
             self.active = False
             threading.Thread.__init__(self)
-            self.setDaemon(False)
+            self.daemon = True
 
         def start (self, flag=None):
             self.flag = flag
             self.server = self.EchoServer(certfile)
             self.port = self.server.port
             threading.Thread.__init__(self)
-            self.setDaemon(True)
+            self.daemon = True
 
         def __str__(self):
             return "<%s %s>" % (self.__class__.__name__, self.server)
             self.server = self.HTTPSServer(
                 (HOST, self.port), self.RootedHTTPRequestHandler, certfile)
             threading.Thread.__init__(self)
-            self.setDaemon(True)
+            self.daemon = True
 
         def __str__(self):
             return "<%s %s>" % (self.__class__.__name__, self.server)