We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0f7a5e commit 30e1a4aCopy full SHA for 30e1a4a
test-data/samples/crawl2.py
@@ -825,9 +825,12 @@ def main() -> None:
825
log = Logger(args.level)
826
827
if args.iocp:
828
- from asyncio import ProactorEventLoop
829
- loop = ProactorEventLoop() # type: ignore
830
- asyncio.set_event_loop(loop)
+ if sys.platform == 'win32':
+ from asyncio import ProactorEventLoop
+ loop = ProactorEventLoop() # type: ignore
831
+ asyncio.set_event_loop(loop)
832
+ else:
833
+ assert False
834
elif args.select:
835
loop = asyncio.SelectorEventLoop() # type: ignore
836
asyncio.set_event_loop(loop)
0 commit comments