diff -Nru cherrypy3-8.9.1/debian/changelog cherrypy3-8.9.1/debian/changelog --- cherrypy3-8.9.1/debian/changelog 2020-10-14 15:31:32.000000000 +0000 +++ cherrypy3-8.9.1/debian/changelog 2021-03-01 18:19:50.000000000 +0000 @@ -1,3 +1,10 @@ +cherrypy3 (8.9.1-8) unstable; urgency=medium + + * Add patch 0005: replace removed threading.Thread.isAlive() method + with is_alive(). Closes: #983754 + + -- JCF Ploemen (jcfp) Mon, 01 Mar 2021 18:19:50 +0000 + cherrypy3 (8.9.1-7) unstable; urgency=medium * Team upload diff -Nru cherrypy3-8.9.1/debian/patches/0005-fix-use-of-isAlive.patch cherrypy3-8.9.1/debian/patches/0005-fix-use-of-isAlive.patch --- cherrypy3-8.9.1/debian/patches/0005-fix-use-of-isAlive.patch 1970-01-01 00:00:00.000000000 +0000 +++ cherrypy3-8.9.1/debian/patches/0005-fix-use-of-isAlive.patch 2021-03-01 18:19:50.000000000 +0000 @@ -0,0 +1,42 @@ +# Replace removed threading.Thread.isAlive() method with is_alive() + +--- cherrypy3-8.9.1.orig/cherrypy/process/wspbus.py ++++ cherrypy3-8.9.1/cherrypy/process/wspbus.py +@@ -342,7 +342,7 @@ class Bus(object): + # that another thread executes cherrypy.engine.exit() + if ( + t != threading.currentThread() and +- t.isAlive() and ++ t.is_alive() and + not isinstance(t, threading._MainThread) + ): + # Note that any dummy (external) threads are always daemonic. +--- cherrypy3-8.9.1.orig/cherrypy/wsgiserver/__init__.py ++++ cherrypy3-8.9.1/cherrypy/wsgiserver/__init__.py +@@ -1671,7 +1671,7 @@ class ThreadPool(object): + # Grow/shrink the pool if necessary. + # Remove any dead threads from our list + for t in self._threads: +- if not t.isAlive(): ++ if not t.is_alive(): + self._threads.remove(t) + amount -= 1 + +@@ -1699,7 +1699,7 @@ class ThreadPool(object): + endtime = time.time() + timeout + while self._threads: + worker = self._threads.pop() +- if worker is not current and worker.isAlive(): ++ if worker is not current and worker.is_alive(): + try: + if timeout is None or timeout < 0: + worker.join() +@@ -1707,7 +1707,7 @@ class ThreadPool(object): + remaining_time = endtime - time.time() + if remaining_time > 0: + worker.join(remaining_time) +- if worker.isAlive(): ++ if worker.is_alive(): + # We exhausted the timeout. + # Forcibly shut down the socket. + c = worker.conn diff -Nru cherrypy3-8.9.1/debian/patches/series cherrypy3-8.9.1/debian/patches/series --- cherrypy3-8.9.1/debian/patches/series 2020-10-14 15:31:32.000000000 +0000 +++ cherrypy3-8.9.1/debian/patches/series 2021-03-01 18:19:50.000000000 +0000 @@ -2,3 +2,4 @@ 0002-use-mock.mock-instead-of-unittest.mock.patch 0003-disable-test_antistampede.patch 0004-unrepr-also-from-__builtin__.patch +0005-fix-use-of-isAlive.patch