From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DE6A315864F for ; Sat, 25 Mar 2023 16:30:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 320C9E0794; Sat, 25 Mar 2023 16:30:35 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1878AE0794 for ; Sat, 25 Mar 2023 16:30:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 48DB334115E for ; Sat, 25 Mar 2023 16:30:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8DDFC8E4 for ; Sat, 25 Mar 2023 16:30:31 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1679761824.895f647b3b4e748fac730036d6e9067f327bcadf.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytz/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytz/files/pytz-2023.2-system-tzinfo.patch X-VCS-Directories: dev-python/pytz/files/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 895f647b3b4e748fac730036d6e9067f327bcadf X-VCS-Branch: master Date: Sat, 25 Mar 2023 16:30:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c6f35b1e-7560-4418-8438-4e7cad41a783 X-Archives-Hash: f4ec4e9ba752f86548d71346234f44a5 commit: 895f647b3b4e748fac730036d6e9067f327bcadf Author: Michał Górny gentoo org> AuthorDate: Sat Mar 25 16:30:24 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Mar 25 16:30:24 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=895f647b dev-python/pytz: Rename our allzones() to private _allzones() Signed-off-by: Michał Górny gentoo.org> dev-python/pytz/files/pytz-2023.2-system-tzinfo.patch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev-python/pytz/files/pytz-2023.2-system-tzinfo.patch b/dev-python/pytz/files/pytz-2023.2-system-tzinfo.patch index 4ce04416dc83..1e64f1bd2fa4 100644 --- a/dev-python/pytz/files/pytz-2023.2-system-tzinfo.patch +++ b/dev-python/pytz/files/pytz-2023.2-system-tzinfo.patch @@ -1,6 +1,8 @@ Inspired by the Fedora patch: https://src.fedoraproject.org/rpms/pytz/blob/rawhide/f/pytz-zoneinfo.patch +_allzones() is based on code in gen_tzinfo.py in upstream repo. + diff --git a/pytz/__init__.py b/pytz/__init__.py index f89d0eb..d00f3bb 100644 --- a/pytz/__init__.py @@ -9,7 +11,7 @@ index f89d0eb..d00f3bb 100644 return s.encode('ASCII') -+def allzones(): ++def _allzones(): + for dirpath, dirnames, filenames in os.walk(_PYTZ_TZDATADIR): + for f in filenames: + p = os.path.join(dirpath, f) @@ -18,7 +20,7 @@ index f89d0eb..d00f3bb 100644 + + +_PYTZ_TZDATADIR = os.environ.get('PYTZ_TZDATADIR', '/usr/share/zoneinfo') -+_all_timezones_unchecked = LazyList(x for x in allzones()) ++_all_timezones_unchecked = LazyList(x for x in _allzones()) +all_timezones = _all_timezones_unchecked +all_timezones_set = LazySet(all_timezones) +