| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
|
Every change to Python requires a NEWS entry. Please, add it using the blurb_it Web app or the blurb command-line tool. |
Sorry, something went wrong.
There was a problem hiding this comment.
This looks great, thanks!
In addition to my other comments, two other things:
def test_utc_alias(self):
self.assertIs(UTC, timezone.utc)Thanks for your contribution!
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request. |
Sorry, something went wrong.
|
I have made the requested changes; please review again |
Sorry, something went wrong.
|
Thanks for making the requested changes! @pganssle: please review the changes made to this pull request. |
Sorry, something went wrong.
There was a problem hiding this comment.
Can you add this test?
Maybe add a very simple test to TestModule, like this:
def test_utc_alias(self): self.assertIs(UTC, timezone.utc)
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request. |
Sorry, something went wrong.
|
I had to move the definition of datetime.UTC to the end so that modifications to datetime.timezone.utc doesn't make it a different object. |
Sorry, something went wrong.
|
I have made the requested changes; please review again |
Sorry, something went wrong.
|
Thanks for making the requested changes! @pganssle: please review the changes made to this pull request. |
Sorry, something went wrong.
1. Add UTC definition into C implementation as well (just for consistency, there's no particular reason not to simply assign the alias in the Python code later). 2. Move `..versionadded` tag into the right place
Resolves an issue Ken reported running tests in the QA farm, which is due to use of an interface from more-recent-python: python/cpython#91973
| Back | FazBrowse Home | New Git URL |
fixes #91928
UTC is now module attribute aliased to datetime.timezone.utc.
You can now do the following:
Automerge-Triggered-By: GH:pganssle