Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /SHAdd0WTAka_Zen-Ai-Pentest /scripts /async_fix.py
| """ | |
| Windows Asyncio Fix für ResourceWarnings | |
| Verhindert 'unclosed transport' Fehler auf Windows | |
| """ | |
| import sys | |
| if sys.platform == "win32": | |
| # Fix für Proactor Event Loop Warnings | |
| def silence_asyncio_warnings(): | |
| """Silence unclosed transport warnings on Windows""" | |
| import warnings | |
| warnings.filterwarnings("ignore", message="unclosed transport", category=ResourceWarning) | |
| silence_asyncio_warnings() | |
| # Alternativ: Use SelectorEventLoop on Windows (more stable) | |
| # asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) | |
Xet Storage Details
- Size:
- 582 Bytes
- Xet hash:
- d77ab76acdb0b16f29ab03ba221d5b572ee1ea41b1c112c6117001ee36edf5a1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.