Skip to content

Commit

Permalink
Remove backport of datetime functions
Browse files Browse the repository at this point in the history
This is no longer needed as python <3.11 is not supported anymore
  • Loading branch information
JHolba committed Dec 4, 2024
1 parent 0f4ffed commit 0ba0626
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ classifiers = [
dynamic = ["version"]
dependencies = [
"aiohttp",
"backports-datetime_fromisoformat; python_version < '3.11'",
"cryptography",
"dnspython >= 2",
"fastapi",
Expand Down
6 changes: 0 additions & 6 deletions src/ert/ensemble_evaluator/snapshot.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import logging
import sys
import typing
from collections import defaultdict
from datetime import datetime
Expand Down Expand Up @@ -49,11 +48,6 @@

logger = logging.getLogger(__name__)

if sys.version_info < (3, 11):
from backports.datetime_fromisoformat import MonkeyPatch # type: ignore

MonkeyPatch.patch_fromisoformat()


class UnsupportedOperationException(ValueError):
pass
Expand Down
6 changes: 0 additions & 6 deletions src/ert/gui/model/snapshot.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import logging
import sys
from collections import defaultdict
from contextlib import ExitStack
from datetime import datetime, timedelta
Expand All @@ -26,11 +25,6 @@
)
from ert.shared.status.utils import byte_with_unit, file_has_content

if sys.version_info < (3, 11):
from backports.datetime_fromisoformat import MonkeyPatch # type: ignore

MonkeyPatch.patch_fromisoformat()

logger = logging.getLogger(__name__)

UserRole = Qt.ItemDataRole.UserRole
Expand Down

0 comments on commit 0ba0626

Please sign in to comment.