summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2021-05-03 19:55:28 -0700
committerGitHub <noreply@github.com>2021-05-03 19:55:28 -0700
commitbb35731fce4920c6b3d3141c354a2caee8c7c4f6 (patch)
tree8579a18f7c42ff828a9815a7f5c4ef0aed0f0225
parent333508dba488f2b075f02fea53ac3196f870660a (diff)
parent6faa8b006317a9550f7e8fd7b3f37678a7c49f18 (diff)
Merge pull request #982 from tirkarthi/fix-threading
Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10
-rw-r--r--mycli/AUTHORS5
-rw-r--r--mycli/completion_refresher.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/mycli/AUTHORS b/mycli/AUTHORS
index a5232ad..308e962 100644
--- a/mycli/AUTHORS
+++ b/mycli/AUTHORS
@@ -48,6 +48,7 @@ Contributors:
* Jonathan Lloyd
* Jonathan Slenders
* Kacper Kwapisz
+ * Karthikeyan Singaravelan
* kevinhwang91
* KITAGAWA Yasutaka
* Klaus Wünschel
@@ -87,7 +88,7 @@ Contributors:
* Zhidong
* Zhongyang Guan
-Creator:
---------
+Created by:
+-----------
Amjith Ramanujam
diff --git a/mycli/completion_refresher.py b/mycli/completion_refresher.py
index e6c8dd0..124068a 100644
--- a/mycli/completion_refresher.py
+++ b/mycli/completion_refresher.py
@@ -36,7 +36,7 @@ class CompletionRefresher(object):
target=self._bg_refresh,
args=(executor, callbacks, completer_options),
name='completion_refresh')
- self._completer_thread.setDaemon(True)
+ self._completer_thread.daemon = True
self._completer_thread.start()
return [(None, None, None,
'Auto-completion refresh started in the background.')]