Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eagerly import _tzpath in zoneinfo module #30

Merged
merged 1 commit into from
Apr 4, 2020
Merged

Conversation

pganssle
Copy link
Owner

@pganssle pganssle commented Apr 4, 2020

If we import zoneinfo._tzpath on demand, there's the possibility that some import trickery means that set_tzpath for this instance of the zoneinfo module points to a different _tzpath module than the one we get from a fresh import. Best to make the module self-contained.

If we import zoneinfo._tzpath on demand, there's the possibility that
some import trickery means that `set_tzpath` for this instance of the
zoneinfo module points to a different _tzpath module than the one we get
from a fresh import. Best to make the module self-contained.
@pganssle pganssle merged commit 76ddeb0 into master Apr 4, 2020
@pganssle pganssle deleted the eager_tzpath branch May 21, 2020 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant