Skip to content

Commit 6f92586

Browse files
committed
removing python 3.6 compat
1 parent c626cf3 commit 6f92586

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pytak/client_functions.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import sys
3232
import warnings
3333

34+
from asyncio import get_running_loop
3435
from configparser import ConfigParser, SectionProxy
3536
from urllib.parse import ParseResult, urlparse
3637
from typing import Any, Tuple, Union
@@ -47,13 +48,6 @@
4748

4849
from pytak.crypto_functions import convert_cert
4950

50-
# DEPRECATED Python 3.6 support for asyncio get_running_loop().
51-
if sys.version_info[:2] >= (3, 7): # pragma: no cover
52-
from asyncio import get_running_loop
53-
else: # pragma: no cover
54-
warnings.warn("Using Python < 3.7, consider upgrading Python.")
55-
from asyncio import get_event_loop as get_running_loop
56-
5751

5852
def get_cot_url(config) -> ParseResult:
5953
"""Verify and parse a raw COT_URL."""

0 commit comments

Comments
 (0)