mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Rename thread to _thread and dummy_thread to _dummy_thread. Issue #2875.
This commit is contained in:
parent
3b4b45bfe5
commit
2067bfdf25
56 changed files with 161 additions and 169 deletions
|
@ -548,8 +548,8 @@ class Telnet:
|
|||
|
||||
def mt_interact(self):
|
||||
"""Multithreaded version of interact()."""
|
||||
import thread
|
||||
thread.start_new_thread(self.listener, ())
|
||||
import _thread
|
||||
_thread.start_new_thread(self.listener, ())
|
||||
while 1:
|
||||
line = sys.stdin.readline()
|
||||
if not line:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue