Skip to content
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

Do not use datetime.utcnow() that is deprecated in Python 3.12 #972

Merged
merged 5 commits into from
Sep 14, 2023

Conversation

ellert
Copy link
Contributor

@ellert ellert commented Sep 11, 2023

  • Do not use datetime.utcnow() that is deprecated in Python 3.12
  • Import session.utcnow() into utils instead of reimplementing it

ellert and others added 2 commits September 11, 2023 06:37
Import session.utcnow() into utils instead of reimplementing it
Copy link
Member

@davidbrochart davidbrochart left a comment

Choose a reason for hiding this comment

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

Thanks @ellert.
I don't know why we had this implementation of utcnow in utils.py, but it looks like it is not needed indeed.

jupyter_client/session.py Outdated Show resolved Hide resolved
jupyter_client/utils.py Outdated Show resolved Hide resolved
@blink1073 blink1073 enabled auto-merge (squash) September 14, 2023 01:41
@blink1073 blink1073 merged commit 60c1095 into jupyter:main Sep 14, 2023
28 checks passed
@ellert ellert deleted the no-datetime.utcnow branch September 14, 2023 02:56
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.

3 participants