Skip to content

Commit

Permalink
Remove vestigial babel.localtime cache bits
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Jan 20, 2023
1 parent 1cc0076 commit 8234caa
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions babel/localtime/__init__.py
Expand Up @@ -11,18 +11,13 @@

import datetime
import sys
from threading import RLock

if sys.platform == 'win32':
from babel.localtime._win32 import _get_localzone
else:
from babel.localtime._unix import _get_localzone


_cached_tz = None
_cache_lock = RLock()


def get_localzone() -> datetime.tzinfo:
"""Returns the current underlying local timezone object.
Generally this function does not need to be used, it's a
Expand Down

0 comments on commit 8234caa

Please sign in to comment.