fix for linux
This commit is contained in:
@@ -357,6 +357,14 @@ class InteractBase(object):
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
def input_process(self, stdin_fd, sq, str):
|
def input_process(self, stdin_fd, sq, str):
|
||||||
|
import sys
|
||||||
|
if sys.platform != 'win32':
|
||||||
|
# fix for Linux , Ignoring :
|
||||||
|
# /usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143:
|
||||||
|
# UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown
|
||||||
|
import warnings
|
||||||
|
warnings.simplefilter(action='ignore', category=UserWarning)
|
||||||
|
|
||||||
sys.stdin = os.fdopen(stdin_fd)
|
sys.stdin = os.fdopen(stdin_fd)
|
||||||
try:
|
try:
|
||||||
inp = input (str)
|
inp = input (str)
|
||||||
|
|||||||
Reference in New Issue
Block a user