qrm2/utils/connector.py

17 lines
393 B
Python
Raw Normal View History

"""
Wrapper to handle aiohttp connector creation.
---
2021-03-28 13:57:03 -04:00
Copyright (C) 2020 classabbyamp, 0x5c
This file is part of qrm2 and is released under the terms of
the GNU General Public License, version 2.
"""
import aiohttp
async def new_connector(*args, **kwargs) -> aiohttp.TCPConnector:
"""*Yes, it's just a coro to instantiate a class.*"""
return aiohttp.TCPConnector(*args, **kwargs)