From: Peter Korsgaard <peter@korsgaard.com>
To: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] support/scripts/pkg-stats: fix running on older python versions
Date: Thu, 29 Feb 2024 17:05:29 +0100 [thread overview]
Message-ID: <87h6hrdzna.fsf@48ers.dk> (raw)
In-Reply-To: <20240228224459.2383336-1-yann.morin.1998@free.fr> (Yann E. MORIN's message of "Wed, 28 Feb 2024 23:44:59 +0100")
>>>>> "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 parent reply other threads:[~2024-02-29 16:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-28 22:44 [Buildroot] [PATCH] support/scripts/pkg-stats: fix running on older python versions Yann E. MORIN
2024-02-29 16:05 ` Peter Korsgaard
2024-02-29 16:05 ` Peter Korsgaard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h6hrdzna.fsf@48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@buildroot.org \
--cc=yann.morin.1998@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox