Fix missing import.
This commit is contained in:
parent
e429763dea
commit
700dbb5555
@ -34,7 +34,7 @@ from email.utils import parsedate_to_datetime
|
|||||||
import functools
|
import functools
|
||||||
from inspect import isawaitable as _isawaitable
|
from inspect import isawaitable as _isawaitable
|
||||||
import json
|
import json
|
||||||
from re import split as re_split
|
import re
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from .errors import InvalidArgument
|
from .errors import InvalidArgument
|
||||||
@ -79,7 +79,7 @@ def cached_slot_property(name):
|
|||||||
|
|
||||||
def parse_time(timestamp):
|
def parse_time(timestamp):
|
||||||
if timestamp:
|
if timestamp:
|
||||||
return datetime.datetime(*map(int, re_split(r'[^\d]', timestamp.replace('+00:00', ''))))
|
return datetime.datetime(*map(int, re.split(r'[^\d]', timestamp.replace('+00:00', ''))))
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def deprecated(instead=None):
|
def deprecated(instead=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user