qrm2/utils/connector.py
0x5c 8bfaaf4af6
[FIX] aiohttp DeprecationWarning
- Passing a connector to Bot()
- Using that connector for sessions in extensions

Fixes #141
2020-01-07 05:36:09 -05:00

17 lines
401 B
Python

"""
Wrapper to handle aiohttp connector creation.
---
Copyright (C) 2020 Abigail Gold, 0x5c
This file is part of discord-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)