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

Made GeoIP2.__del__() close all databases. #17550

Merged
merged 1 commit into from
Dec 1, 2023
Merged

Conversation

ngnpope
Copy link
Member

@ngnpope ngnpope commented Nov 29, 2023

Am coming back round to a bunch of patches for improving the GeoIP stuff.
Trying to break this down into small pull requests, extracting some of the minor clean up and fixes.


If a directory is provided containing both the city and country databases, then both will be opened.

This fix and test ensures that all databases are properly closed.

@ngnpope ngnpope requested a review from felixxm November 29, 2023 16:40
@felixxm felixxm changed the title Ensured GeoIP2.__del__() closes all databases. Made GeoIP2.__del__() close all databases. Dec 1, 2023
@felixxm
Copy link
Member

felixxm commented Dec 1, 2023

@ngnpope Thanks 👍

@felixxm felixxm merged commit 0f83133 into django:main Dec 1, 2023
34 checks passed
@ngnpope ngnpope deleted the geoip2-del branch December 1, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants