Skip to content

Deprecate parse_iso8601 in favor of fromisoformat#8098

Merged
auvipy merged 1 commit intocelery:mainfrom
stumpylog:main
Mar 3, 2023
Merged

Deprecate parse_iso8601 in favor of fromisoformat#8098
auvipy merged 1 commit intocelery:mainfrom
stumpylog:main

Conversation

@stumpylog
Copy link
Contributor

Note: Before submitting this pull request, please review our contributing
guidelines
.

Description

Fixes #8080. As suggested there, marks as deprecated for v5.3 with removal planned in v6

@auvipy auvipy self-requested a review March 3, 2023 00:09

def parse_iso8601(datestring):
"""Parse and convert ISO-8601 string to datetime."""
warn("parse_iso8601", "v5.3", "v6", "datetime.datetime.fromisoformat")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this raising warning properly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In used what I found built in. The parameter depracation is provided, so the final result is a warnings.warn with a CDeprecationWarning. So yes, I believe so.

@auvipy auvipy added this to the 5.3 milestone Mar 3, 2023
@auvipy
Copy link
Member

auvipy commented Sep 13, 2023

hey! we got a bug report issue #8499

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate iso8601 module

2 participants