summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Chan <alex@alexwlchan.net>2017-06-01 22:53:51 +0100
committerAlex Chan <alex@alexwlchan.net>2017-06-01 22:53:51 +0100
commitd04a91344b79faa451cc0d9e201d9bbad12a93eb (patch)
tree5b0fd74c5b584c90ac2cc2a0eef661e6a2361473
parent9e347fa9b22bf4e786aef00292ac6a5425d7da6a (diff)
downloadisort-d04a91344b79faa451cc0d9e201d9bbad12a93eb.tar.gz
Add the previously undefined _CacheInfo
-rw-r--r--isort/pie_slice.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/isort/pie_slice.py b/isort/pie_slice.py
index bfb341a7..2bff4682 100644
--- a/isort/pie_slice.py
+++ b/isort/pie_slice.py
@@ -451,6 +451,8 @@ if sys.version_info < (3, 2):
from functools import wraps
+ _CacheInfo = collections.namedtuple("CacheInfo", "hits misses maxsize currsize")
+
def lru_cache(maxsize=100):
"""Least-recently-used cache decorator.
Taking from: https://github.com/MiCHiLU/python-functools32/blob/master/functools32/functools32.py