-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix python3.13 leap day parsing warning in time.from_http_header() #1452
fix python3.13 leap day parsing warning in time.from_http_header() #1452
Conversation
minio/timeutils.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pleasse stick to the fix and unnecessary changes break backward compatibilities.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for delay, done, i was little too enthusiastic at first (hope you don't mind), let's keep the stuff as is
Signed-off-by: rafsaf <[email protected]>
ff549d0
to
7b27e14
Compare
As of discussion in #1451
datetime.strptime(value, "%a, %d %b %Y %H:%M:%S %Z")
indeed, i created some tests (test_to_http_header_polish_locale, it will be skipped if you don't have pl locale, and i don't think it's crucial to install it in CI) to play with that and i can also see no way to do it without using some kind of locks but this would be much worse than now, and suggested fix indeed is fineHope that helps
Fixes #1451