From: Luiz Menezes Date: Sat, 22 Sep 2018 20:29:08 +0000 (-0300) Subject: Fix cassette module to work with py34 X-Git-Tag: v2.0.1~1^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=287ea4b06e0354f505267273122b18999b34f0b4;p=vcrpy.git Fix cassette module to work with py34 --- diff --git a/vcr/cassette.py b/vcr/cassette.py index 3b6f54e..5683ddf 100644 --- a/vcr/cassette.py +++ b/vcr/cassette.py @@ -16,11 +16,13 @@ from .util import partition_dict try: from asyncio import iscoroutinefunction - from ._handle_coroutine import handle_coroutine except ImportError: def iscoroutinefunction(*args, **kwargs): return False +if sys.version_info[:2] >= (3, 5): + from ._handle_coroutine import handle_coroutine +else: def handle_coroutine(*args, **kwags): raise NotImplementedError('Not implemented on Python 2')