[issue41530] zoneinfo: ZoneInfo raises IsADirectoryError instead of ZoneInfoNotFoundError

Paul Ganssle report at bugs.python.org
Wed Aug 12 09:25:21 EDT 2020


Paul Ganssle <p.ganssle at gmail.com> added the comment:

I think that `ZoneInfo('__init__.py')` is also a problem, but a slightly different one. That comes from the fact that in order to support `importlib.resources`, each of the zoneinfo subdirectories needs an `__init__.py`, but the ZoneInfo constructor should probably ignore those, since they are added by `tzdata` and not actually part of a tzdata distribution.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41530>
_______________________________________


More information about the Python-bugs-list mailing list