From d04a91344b79faa451cc0d9e201d9bbad12a93eb Mon Sep 17 00:00:00 2001 From: Alex Chan Date: Thu, 1 Jun 2017 22:53:51 +0100 Subject: Add the previously undefined _CacheInfo --- isort/pie_slice.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.1