public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytz/files/
Date: Sat, 25 Mar 2023 16:30:31 +0000 (UTC)	[thread overview]
Message-ID: <1679761824.895f647b3b4e748fac730036d6e9067f327bcadf.mgorny@gentoo> (raw)

commit:     895f647b3b4e748fac730036d6e9067f327bcadf
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 25 16:30:24 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> 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 <mgorny <AT> 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)
 +


             reply	other threads:[~2023-03-25 16:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-25 16:30 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-05-14 22:19 [gentoo-commits] repo/gentoo:master commit in: dev-python/pytz/files/ Aaron Bauman

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=1679761824.895f647b3b4e748fac730036d6e9067f327bcadf.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /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