[prev in list] [next in list] [prev in thread] [next in thread] 

List:       buildroot
Subject:    Re: [Buildroot] [PATCH] support/scripts/pkg-stats: fix running on older python versions
From:       Peter Korsgaard <peter () korsgaard ! com>
Date:       2024-02-29 16:05:29
Message-ID: 87h6hrdzna.fsf () 48ers ! dk
[Download RAW message or body]

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 > Commit f71d9f49e546 (support/scripts/pkg-stats: fix datetime deprecation
 > warning) forgot to consider that the datetime.UTC suggested by python
 > 3.12, was only introduced with python 3.11.

 > However, we are still generating the daily report on a python 3.8
 > version, which fails at runtime:
 >     AttributeError: module 'datetime' has no attribute 'UTC'

 > It turns out that datetime.UTC is just an alias for datetime.timezone.utc,
 > which seems to have existed since before python3...

 > Use datetime.timezone.utc instead of its alias.

 > Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>

Committed, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic