Skip to content

Commit

Permalink
drop six dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Jun 17, 2024
1 parent ea74daf commit 4592e9b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions edtf/natlang/en.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from datetime import datetime

from dateutil.parser import ParserError, parse
from six.moves import xrange

from edtf import appsettings

Expand Down Expand Up @@ -216,7 +215,7 @@ def text_to_edtf_date(text):
mentions_month = re.findall(r"\bmonth\b.+(in|during)\b", t)
mentions_day = re.findall(r"\bday\b.+(in|during)\b", t)

for i in xrange(len(date1)):
for i in range(len(date1)):
# if the given year could be a century (e.g. '1800s') then use
# approximate/uncertain markers to decide whether we treat it as
# a century or a decade.
Expand All @@ -238,7 +237,7 @@ def text_to_edtf_date(text):

# strip off unknown chars from end of string - except the first 4

for i in reversed(xrange(len(result))):
for i in reversed(range(len(result))):
if result[i] not in ("X", "-"):
smallest_length = 4

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ version = "5.0.0"
dependencies = [
"python-dateutil",
"pyparsing",
"six"
]
description = "Python implementation of Library of Congress EDTF (Extended Date Time Format) specification"
requires-python = ">=3.8"
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
python-dateutil
pyparsing
six

0 comments on commit 4592e9b

Please sign in to comment.