mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-10 09:35:34 +00:00
Fix cassette module to work with py34
This commit is contained in:
@@ -16,11 +16,13 @@ from .util import partition_dict
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
from asyncio import iscoroutinefunction
|
from asyncio import iscoroutinefunction
|
||||||
from ._handle_coroutine import handle_coroutine
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
def iscoroutinefunction(*args, **kwargs):
|
def iscoroutinefunction(*args, **kwargs):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if sys.version_info[:2] >= (3, 5):
|
||||||
|
from ._handle_coroutine import handle_coroutine
|
||||||
|
else:
|
||||||
def handle_coroutine(*args, **kwags):
|
def handle_coroutine(*args, **kwags):
|
||||||
raise NotImplementedError('Not implemented on Python 2')
|
raise NotImplementedError('Not implemented on Python 2')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user