add disable_cachew helper

This commit is contained in:
Dima Gerasimov 2020-04-24 15:19:31 +01:00
parent 121ed58c17
commit 21e82f0cd6
3 changed files with 36 additions and 12 deletions

View file

@ -11,6 +11,6 @@ tz_lookup = {
tz_lookup['UTC'] = pytz.utc # ugh. otherwise it'z Zulu...
@lru_cache(-1)
@lru_cache(None)
def abbr_to_timezone(abbr: str):
return tz_lookup[abbr]