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