##// END OF EJS Templates
conditional windows import
Matthias Bussonnier -
Show More
@@ -11,7 +11,6 b' import os'
11 import signal
11 import signal
12 import sys
12 import sys
13 import time
13 import time
14 from asyncio import SafeChildWatcher
15 from contextlib import contextmanager
14 from contextlib import contextmanager
16 from subprocess import CalledProcessError
15 from subprocess import CalledProcessError
17
16
@@ -74,6 +73,8 b' def safe_watcher():'
74 yield
73 yield
75 return
74 return
76
75
76 from asyncio import SafeChildWatcher
77
77 policy = asyncio.get_event_loop_policy()
78 policy = asyncio.get_event_loop_policy()
78 old_watcher = policy.get_child_watcher()
79 old_watcher = policy.get_child_watcher()
79 if isinstance(old_watcher, SafeChildWatcher):
80 if isinstance(old_watcher, SafeChildWatcher):
General Comments 0
You need to be logged in to leave comments. Login now