summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-06-08 11:29:02 +0200
committerMichał Górny <mgorny@gentoo.org>2020-06-08 12:02:57 +0200
commitede46deb06342ee19d0d4b4a3be19a7a750d83b3 (patch)
tree8b0cebc69a4391ec55ada1b523c4ae0f8507b087 /dev-python/pygame/files
parentmedia-sound/qastools: Don't compress manpages (diff)
downloadgentoo-ede46deb06342ee19d0d4b4a3be19a7a750d83b3.tar.gz
gentoo-ede46deb06342ee19d0d4b4a3be19a7a750d83b3.tar.bz2
gentoo-ede46deb06342ee19d0d4b4a3be19a7a750d83b3.zip
dev-python/pygame: Bump to 2.0.0.dev10
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pygame/files')
-rw-r--r--dev-python/pygame/files/pygame-2.0.0_pre10-py39.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-python/pygame/files/pygame-2.0.0_pre10-py39.patch b/dev-python/pygame/files/pygame-2.0.0_pre10-py39.patch
new file mode 100644
index 000000000000..9cfaa476db39
--- /dev/null
+++ b/dev-python/pygame/files/pygame-2.0.0_pre10-py39.patch
@@ -0,0 +1,34 @@
+From 159908e5726c3df5df58429d1ff3113137c57f98 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Mon, 8 Jun 2020 09:35:41 +0200
+Subject: [PATCH] Replace long-deprecated Thread.isAlive() with .is_alive()
+
+Replace Thread.isAlive() calls with Thread.is_alive() to fix
+compatibility with Python 3.9. The new method was present since py2.6,
+the old one got deprecated in py3.1 and was finally removed in py3.9.
+---
+ test/threads_test.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/test/threads_test.py b/test/threads_test.py
+index 300f6a9c6..59ab5d488 100644
+--- a/test/threads_test.py
++++ b/test/threads_test.py
+@@ -41,7 +41,7 @@ def test_stop(self):
+ self.assertGreater(len(wq.pool), 0)
+
+ for t in wq.pool:
+- self.assertTrue(t.isAlive())
++ self.assertTrue(t.is_alive())
+
+ for i in xrange_(200):
+ wq.do(lambda x: x + 1, i)
+@@ -49,7 +49,7 @@ def test_stop(self):
+ wq.stop()
+
+ for t in wq.pool:
+- self.assertFalse(t.isAlive())
++ self.assertFalse(t.is_alive())
+
+ self.assertIs(wq.queue.get(), STOP)
+