Skip to content
Snippets Groups Projects
Commit 0e302d8e7f63 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

feat!: remove deprecated logilab.common.date.strptime

parent 2ece8f5d3ce7
No related branches found
No related tags found
1 merge request!79remove all deprecated code
...@@ -28,8 +28,6 @@ ...@@ -28,8 +28,6 @@
from calendar import monthrange, timegm from calendar import monthrange, timegm
from typing import Union, List, Any, Optional, Generator from typing import Union, List, Any, Optional, Generator
from logilab.common.deprecation import callable_deprecated
try: try:
from mx.DateTime import RelativeDateTime, Date, DateTimeType from mx.DateTime import RelativeDateTime, Date, DateTimeType
except ImportError: except ImportError:
...@@ -213,8 +211,6 @@ ...@@ -213,8 +211,6 @@
ONEDAY: timedelta = timedelta(days=1) ONEDAY: timedelta = timedelta(days=1)
ONEWEEK: timedelta = timedelta(days=7) ONEWEEK: timedelta = timedelta(days=7)
strptime = callable_deprecated("Use strptime from datetime.datetime instead")(datetime.strptime)
def strptime_time(value, format="%H:%M"): def strptime_time(value, format="%H:%M"):
return time(*time_strptime(value, format)[3:6]) return time(*time_strptime(value, format)[3:6])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment