Created
September 13, 2012 11:35
-
-
Save romuald/3713731 to your computer and use it in GitHub Desktop.
PyCountry memory patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/pycountry/db.py b/src/pycountry/db.py | |
index 38689ed..aeb8640 100644 | |
--- a/src/pycountry/db.py | |
+++ b/src/pycountry/db.py | |
@@ -45,6 +45,7 @@ class Database(object): | |
entry.attributes.get(key).value) | |
entry_obj = self.data_class(entry, **mapped_data) | |
self.objects.append(entry_obj) | |
+ tree.unlink() | |
# Construct list of indices: primary single-column indices | |
indices = [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment