Skip to content

Commit

Permalink
removing python 3.6 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
ampledata committed Jan 3, 2025
1 parent c626cf3 commit 6f92586
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pytak/client_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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."""
Expand Down

0 comments on commit 6f92586

Please sign in to comment.