blob: c0313ebe55d07d4c9e9c2e8799185c40f3dbb910 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# Authors: see git history
#
# Copyright (c) 2010 Authors
# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
try:
from functools import lru_cache
except ImportError:
from backports.functools_lru_cache import lru_cache
# simplify use of lru_cache decorator
def cache(*args, **kwargs):
return lru_cache(maxsize=None)(*args, **kwargs)
|