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:
@ -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
|
||||
|
Reference in New Issue
Block a user