mirror of
https://github.com/miaowware/qrm2.git
synced 2024-10-31 14:27:11 -04:00
0a278fe14f
fixes #384
17 lines
398 B
Python
17 lines
398 B
Python
"""
|
|
Wrapper to handle aiohttp connector creation.
|
|
---
|
|
Copyright (C) 2020-2021 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)
|