From cfbd3652eff7b962424de8f5d078cd930b798e86 Mon Sep 17 00:00:00 2001 From: Tareq Al-Ahdal Date: Sat, 2 Apr 2022 00:14:18 +0800 Subject: [PATCH] fix linting error --- nominatim/tools/country_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5