mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-25 03:00:11 +00:00
12 lines
340 B
Python
12 lines
340 B
Python
"""OpenAPI core python 2.7 compatibility module"""
|
|
try:
|
|
from functools import lru_cache
|
|
except ImportError:
|
|
from backports.functools_lru_cache import lru_cache
|
|
|
|
try:
|
|
from functools import partialmethod
|
|
except ImportError:
|
|
from backports.functools_partialmethod import partialmethod
|
|
|
|
__all__ = ['lru_cache', 'partialmethod']
|