diff --git a/pytak/client_functions.py b/pytak/client_functions.py index c569a20..989c6a8 100644 --- a/pytak/client_functions.py +++ b/pytak/client_functions.py @@ -31,6 +31,7 @@ import sys import warnings +from asyncio import get_running_loop from configparser import ConfigParser, SectionProxy from urllib.parse import ParseResult, urlparse from typing import Any, Tuple, Union @@ -47,13 +48,6 @@ from pytak.crypto_functions import convert_cert -# DEPRECATED Python 3.6 support for asyncio get_running_loop(). -if sys.version_info[:2] >= (3, 7): # pragma: no cover - from asyncio import get_running_loop -else: # pragma: no cover - warnings.warn("Using Python < 3.7, consider upgrading Python.") - from asyncio import get_event_loop as get_running_loop - def get_cot_url(config) -> ParseResult: """Verify and parse a raw COT_URL."""