Skip to content

Commit

Permalink
Use built-in ISO 8601 parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
daveisfera committed Oct 13, 2023
1 parent c741a8e commit c4a3e58
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions m3u8/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import re
from urllib.parse import urljoin as _urljoin

import iso8601

from m3u8 import protocol

"""
Expand All @@ -20,7 +18,7 @@


def cast_date_time(value):
return iso8601.parse_date(value)
return datetime.datetime.fromisoformat(value)


def format_date_time(value, **kwargs):
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
iso8601
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
url="https://github.com/globocom/m3u8",
description="Python m3u8 parser",
long_description=long_description,
python_requires=">=3.6",
python_requires=">=3.7",
)

0 comments on commit c4a3e58

Please sign in to comment.