scrapy / scrapy
Showing 1 of 1 files from the diff.

@@ -59,7 +59,9 @@
Loading
59 59
    if reactor_class is asyncioreactor.AsyncioSelectorReactor:
60 60
        with suppress(error.ReactorAlreadyInstalledError):
61 61
            if sys.version_info >= (3, 8) and sys.platform == "win32":
62 -
                asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
62 +
                policy = asyncio.get_event_loop_policy()
63 +
                if not isinstance(policy, asyncio.WindowsSelectorEventLoopPolicy):
64 +
                    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
63 65
            if event_loop_path is not None:
64 66
                event_loop_class = load_object(event_loop_path)
65 67
                event_loop = event_loop_class()
Files Coverage
scrapy 88.56%
Project Totals (163 files) 88.56%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading