diff options
Diffstat (limited to 'dev-python/ipy/files/ipy-1.01-setDaemon-daemon.patch')
| -rw-r--r-- | dev-python/ipy/files/ipy-1.01-setDaemon-daemon.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-python/ipy/files/ipy-1.01-setDaemon-daemon.patch b/dev-python/ipy/files/ipy-1.01-setDaemon-daemon.patch new file mode 100644 index 000000000000..fb58aa4afb46 --- /dev/null +++ b/dev-python/ipy/files/ipy-1.01-setDaemon-daemon.patch @@ -0,0 +1,24 @@ +https://github.com/autocracy/python-ipy/pull/76/commits/109ac8c6c1b19243047c262beeabc7d72997e2d1 +From 109ac8c6c1b19243047c262beeabc7d72997e2d1 Mon Sep 17 00:00:00 2001 +From: Karthikeyan Singaravelan <tir.karthi@gmail.com> +Date: Sat, 14 Aug 2021 05:01:15 +0000 +Subject: [PATCH] Set daemon attribute instead of using setDaemon method that + was deprecated in Python 3.10 + +--- + test/test_IPy.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/test_IPy.py b/test/test_IPy.py +index 8dbbd97..769fd7e 100644 +--- a/test/test_IPy.py ++++ b/test/test_IPy.py +@@ -785,7 +785,7 @@ def run(self): + self.result = default + + it = InterruptableThread() +- it.setDaemon(True) ++ it.daemon = True + it.start() + it.join(timeout_duration) + if hasattr(it, 'is_alive'): |
