summaryrefslogtreecommitdiff
path: root/babel/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'babel/util.py')
-rw-r--r--babel/util.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/babel/util.py b/babel/util.py
index f159c33..fb4870d 100644
--- a/babel/util.py
+++ b/babel/util.py
@@ -14,14 +14,12 @@ import collections
import os
import re
import textwrap
+from babel import localtime, dates
+
from collections.abc import Generator, Iterable
from datetime import datetime as datetime_, timedelta, tzinfo
from typing import IO, Any, TypeVar
-import pytz as _pytz
-
-from babel import localtime
-
missing = object()
_T = TypeVar("_T")
@@ -255,8 +253,8 @@ class FixedOffsetTimezone(tzinfo):
# Export the localtime functionality here because that's
# where it was in the past.
-UTC = _pytz.utc
-LOCALTZ = localtime.LOCALTZ
+UTC = dates.UTC
+LOCALTZ = dates.LOCALTZ
get_localzone = localtime.get_localzone
STDOFFSET = localtime.STDOFFSET