diff --git a/CHANGELOG.md b/CHANGELOG.md index 32438b4..9192071 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +## [5.2.1] - 2024-05-02 + +- "Southern Africa" no longer matches South Africa. + ## [5.2.0] - 2024-04-08 - Use French region names when finding French subdivisions diff --git a/geoconvert/__init__.py b/geoconvert/__init__.py index 25b8ce1..c371f69 100644 --- a/geoconvert/__init__.py +++ b/geoconvert/__init__.py @@ -1,2 +1,2 @@ __author__ = "Octopusmind " -__version__ = "5.2.0" +__version__ = "5.2.1" diff --git a/geoconvert/data/countries.py b/geoconvert/data/countries.py index c22c011..29aa0a8 100644 --- a/geoconvert/data/countries.py +++ b/geoconvert/data/countries.py @@ -541,7 +541,6 @@ "somalia": "SO", "south africa": "ZA", "south georgia and the south sandwich islands": "GS", - "southern africa": "ZA", "spain": "ES", "sri lanka": "LK", "sudan": "SD", diff --git a/tests/test_countries.py b/tests/test_countries.py index 0f9fbe8..4e9b687 100644 --- a/tests/test_countries.py +++ b/tests/test_countries.py @@ -19,6 +19,7 @@ class TestCountries: ("Allemagne", {}, "DE"), # fr ("Alemanha", {}, "DE"), # pt # If no country found, return None + ("Southern Africa", {}, None), ("Wonderland", {}, None), ("Germany", {"lang": "fr"}, None), # No confusion with Congo ("CD")