mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 09:13:23 +00:00
19 lines
404 B
Python
19 lines
404 B
Python
try:
|
|
from unittest import mock
|
|
except ImportError:
|
|
import mock
|
|
|
|
try:
|
|
import contextlib
|
|
except ImportError:
|
|
import contextlib2 as contextlib
|
|
else:
|
|
if not hasattr(contextlib, 'ExitStack'):
|
|
import contextlib2 as contextlib
|
|
|
|
import collections
|
|
if not hasattr(collections, 'Counter'):
|
|
import backport_collections as collections
|
|
|
|
__all__ = ['mock', 'contextlib', 'collections']
|