summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert JW Regeer <xistence@0x58.com>2022-02-05 20:05:53 -0700
committerGitHub <noreply@github.com>2022-02-05 20:05:53 -0700
commit07794a596e7567665549fc70b43eb0da50a5a81d (patch)
tree90d32d3df2fc42b28889cd3b0f09d89f19ba077f
parent2efb1345e6a4a2d6beab374c98f9337f26f2fc3a (diff)
parent5ceb0baed26d299356b0a2be610962858cb53edb (diff)
downloadpyramid-07794a596e7567665549fc70b43eb0da50a5a81d.tar.gz
pyramid-07794a596e7567665549fc70b43eb0da50a5a81d.tar.bz2
pyramid-07794a596e7567665549fc70b43eb0da50a5a81d.zip
Merge pull request #3677 from tirkarthi/fix-python3.10-warnings
setDaemon attribute was deprecated in Python 3.10.
-rw-r--r--CONTRIBUTORS.txt4
-rw-r--r--src/pyramid/scripts/pserve.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index d527b1a04..96fb6fd76 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -353,4 +353,6 @@ Contributors
- Sergey Maranchuk, 2020/04/18
-- Thibault Ravera, 2020/06/03 \ No newline at end of file
+- Thibault Ravera, 2020/06/03
+
+- Karthikeyan Singaravelan, 2021/08/24
diff --git a/src/pyramid/scripts/pserve.py b/src/pyramid/scripts/pserve.py
index 6906a0410..1bcf6c543 100644
--- a/src/pyramid/scripts/pserve.py
+++ b/src/pyramid/scripts/pserve.py
@@ -231,7 +231,7 @@ class PServeCommand:
webbrowser.open(url)
t = threading.Thread(target=open_browser)
- t.setDaemon(True)
+ t.daemon = True
t.start()
if self.args.reload and not hupper.is_active():