← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2046355] [NEW] python 3.12 deprecated utcnow and utcfromtimestamp

 

Public bug reported:

In python 3.12 utcnow and utcfromtimestamp have been deprecated:
https://github.com/python/cpython/issues/103857 . Keystone uses them
extensively:

$ grep -ro "utcnow" . | wc -l | xargs echo "Total matches :"        
Total matches : 195

$ grep -ro "utcfromtimestamp" . | wc -l | xargs echo "Total matches :" 
Total matches : 12

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/2046355

Title:
  python 3.12 deprecated utcnow and utcfromtimestamp

Status in OpenStack Identity (keystone):
  New

Bug description:
  In python 3.12 utcnow and utcfromtimestamp have been deprecated:
  https://github.com/python/cpython/issues/103857 . Keystone uses them
  extensively:

  $ grep -ro "utcnow" . | wc -l | xargs echo "Total matches :"        
  Total matches : 195

  $ grep -ro "utcfromtimestamp" . | wc -l | xargs echo "Total matches :" 
  Total matches : 12

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/2046355/+subscriptions