diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/pygame/files | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/pygame/files')
| -rw-r--r-- | dev-python/pygame/files/pygame-2.0.0_pre10-py39.patch | 34 |
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) + |
