This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author josh.ja.butt
Recipients josh.ja.butt
Date 2020-08-12.11:42:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597232536.81.0.285347310196.issue41530@roundup.psfhosted.org>
In-reply-to
Content
Attempting to parse specific keys in zoneinfo.ZoneInfo with tzdata installed will raise unhandled exceptions

e.g. on windows

>>> import zoneinfo
>>> zoneinfo.ZoneInfo('Pacific')
PermissionError: [Errno 13] Permission denied: 'C:\\Program Files\\Python39\\lib\\site-packages\\tzdata\\zoneinfo\\Pacific'

>>> import zoneinfo
>>> zoneinfo.ZoneInfo('__init__.py')
ValueError: Invalid TZif file: magic not found

This happens when non TZif files or directories in the tzdata.zoneinfo module are used as keys.
History
Date User Action Args
2020-08-12 11:42:16josh.ja.buttsetrecipients: + josh.ja.butt
2020-08-12 11:42:16josh.ja.buttsetmessageid: <1597232536.81.0.285347310196.issue41530@roundup.psfhosted.org>
2020-08-12 11:42:16josh.ja.buttlinkissue41530 messages
2020-08-12 11:42:16josh.ja.buttcreate