From cdab3fcb30b34663104758dfb50e8d8f547cb080 Mon Sep 17 00:00:00 2001 From: Jair Henrique Date: Sun, 23 Jul 2023 12:12:44 -0300 Subject: [PATCH] Drop iscoroutinefunction fallback function for unsupported python --- vcr/cassette.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/vcr/cassette.py b/vcr/cassette.py index 69c5575f..1b8b1f2a 100644 --- a/vcr/cassette.py +++ b/vcr/cassette.py @@ -4,6 +4,7 @@ import inspect import logging import sys +from asyncio import iscoroutinefunction import wrapt @@ -16,14 +17,6 @@ from .serializers import yamlserializer from .util import partition_dict -try: - from asyncio import iscoroutinefunction -except ImportError: - - def iscoroutinefunction(*args, **kwargs): - return False - - log = logging.getLogger(__name__)