1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

add lru_cache maxsize for python 3.7 support

This commit is contained in:
Kelly Brazil
2022-02-07 08:34:34 -08:00
parent f0a37ccf30
commit 1a115da67b

View File

@ -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