From 1a115da67bdce9acfefbfb71fbac37e234b1babd Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Mon, 7 Feb 2022 08:34:34 -0800 Subject: [PATCH] add lru_cache maxsize for python 3.7 support --- jc/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/utils.py b/jc/utils.py index 60670e95..713519df 100644 --- a/jc/utils.py +++ b/jc/utils.py @@ -262,7 +262,7 @@ class timestamp: return f'timestamp(string={self.string!r}, format={self.format}, naive={self.naive}, utc={self.utc})' @staticmethod - @lru_cache + @lru_cache(maxsize=512) def _parse_dt(dt_string): """ Input a date-time text string of several formats and convert to