diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-07-05 13:28:14 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-07-05 13:28:14 +0200 |
| commit | 905a0815b89ee43c75d4926a4dea4bf36ac28b98 (patch) | |
| tree | e74b04dd321fdcd35c2d8ae2cd4c5afbe0e45f4e /gui/scripts | |
| parent | e36599fc1ae015e3c50eea9e3dcd86795cd56eab (diff) | |
| download | mullvadvpn-905a0815b89ee43c75d4926a4dea4bf36ac28b98.tar.xz mullvadvpn-905a0815b89ee43c75d4926a4dea4bf36ac28b98.zip | |
More idiomatic python
Diffstat (limited to 'gui/scripts')
| -rw-r--r-- | gui/scripts/extract-geo-data.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/scripts/extract-geo-data.py b/gui/scripts/extract-geo-data.py index c35ff72c75..0597fb0c49 100644 --- a/gui/scripts/extract-geo-data.py +++ b/gui/scripts/extract-geo-data.py @@ -510,7 +510,7 @@ def map_locale(locale_ident): """ Map the locale in Natural Earth Data with the locale in the app and Crowdin """ - if LOCALE_MAPPING.has_key(locale_ident): + if locale_ident in LOCALE_MAPPING: locale_override = LOCALE_MAPPING[locale_ident] else: locale_override = locale_ident |
