Skip to content

Commit 9e0651b

Browse files
refactor: remove hack for strptime bug in py 3.6
1 parent 8f5108e commit 9e0651b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

deepl/util.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,4 @@ def convert_csv_to_dict(
188188

189189

190190
def parse_timestamp(creation_time: str) -> datetime.datetime:
191-
# Workaround for bugs in strptime() in Python 3.6
192-
if ":" == creation_time[-3:-2]:
193-
creation_time = creation_time[:-3] + creation_time[-2:]
194-
if "Z" == creation_time[-1:]:
195-
creation_time = creation_time[:-1] + "+0000"
196191
return datetime.datetime.strptime(creation_time, "%Y-%m-%dT%H:%M:%S.%f%z")

0 commit comments

Comments
 (0)