From: Tareq Al-Ahdal Date: Fri, 1 Apr 2022 16:14:18 +0000 (+0800) Subject: fix linting error X-Git-Tag: v4.1.0~64^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/cfbd3652eff7b962424de8f5d078cd930b798e86?hp=e9c14979a418fdcebe356b17b1010c542473ff0c fix linting error --- diff --git a/nominatim/tools/country_info.py b/nominatim/tools/country_info.py index ab87e826..f6a6293f 100644 --- a/nominatim/tools/country_info.py +++ b/nominatim/tools/country_info.py @@ -117,7 +117,7 @@ def create_country_names(conn, tokenizer, languages=None): def _include_key(key): return key == _COUNTRY_INFO.key_prefix() or \ (key.startswith(_COUNTRY_INFO.key_prefix()+':') and - (not languages or key[len(_COUNTRY_INFO.key_prefix())+1:] in languages)) + (not languages or key[len(_COUNTRY_INFO.key_prefix())+1:] in languages)) with conn.cursor() as cur: psycopg2.extras.register_hstore(cur)