mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Merge pull request #1937 from motec-research/litex_term_deprecation_warning
tools/litex_term: fix DeprecationWarning
This commit is contained in:
commit
b6bfe42b6b
1 changed files with 2 additions and 4 deletions
|
@ -553,8 +553,7 @@ class LiteXTerm:
|
|||
|
||||
def start_reader(self):
|
||||
self.reader_alive = True
|
||||
self.reader_thread = threading.Thread(target=self.reader)
|
||||
self.reader_thread.setDaemon(True)
|
||||
self.reader_thread = threading.Thread(target=self.reader, daemon=True)
|
||||
self.reader_thread.start()
|
||||
|
||||
def stop_reader(self):
|
||||
|
@ -582,8 +581,7 @@ class LiteXTerm:
|
|||
|
||||
def start_writer(self):
|
||||
self.writer_alive = True
|
||||
self.writer_thread = threading.Thread(target=self.writer)
|
||||
self.writer_thread.setDaemon(True)
|
||||
self.writer_thread = threading.Thread(target=self.writer, daemon=True)
|
||||
self.writer_thread.start()
|
||||
|
||||
def stop_writer(self):
|
||||
|
|
Loading…
Reference in a new issue