From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B2B5CC54E41 for ; Thu, 29 Feb 2024 16:32:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 7214E4195C; Thu, 29 Feb 2024 16:32:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GGfIXl7tcCeY; Thu, 29 Feb 2024 16:32:26 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 8E3AA41960 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 8E3AA41960; Thu, 29 Feb 2024 16:32:26 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 62F851BF3D8 for ; Thu, 29 Feb 2024 16:05:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 4F6CB4076C for ; Thu, 29 Feb 2024 16:05:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p_kyb-hSUFhe for ; Thu, 29 Feb 2024 16:05:31 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:4b98:dc4:8::224; helo=relay4-d.mail.gandi.net; envelope-from=peter@korsgaard.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org 7572E4052C DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 7572E4052C Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by smtp4.osuosl.org (Postfix) with ESMTPS id 7572E4052C for ; Thu, 29 Feb 2024 16:05:31 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id B14DBE0009; Thu, 29 Feb 2024 16:05:29 +0000 (UTC) Received: from peko by dell.be.48ers.dk with local (Exim 4.96) (envelope-from ) id 1rfiuX-004pW1-0X; Thu, 29 Feb 2024 17:05:29 +0100 From: Peter Korsgaard To: "Yann E. MORIN" 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") References: <20240228224459.2383336-1-yann.morin.1998@free.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Date: Thu, 29 Feb 2024 17:05:29 +0100 Message-ID: <87h6hrdzna.fsf@48ers.dk> MIME-Version: 1.0 X-GND-Sasl: peter@korsgaard.com X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=none (p=none dis=none) header.from=korsgaard.com Subject: Re: [Buildroot] [PATCH] support/scripts/pkg-stats: fix running on older python versions X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: buildroot@buildroot.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" >>>>> "Yann" == Yann E MORIN 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 Committed, thanks. -- Bye, Peter Korsgaard _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot