X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a28e158bddaed6c690c13df01bfd18a6dd647485..e1dc4379e0cd100200ac53752442143ca4846fc5:/src/nominatim_db/clicmd/special_phrases.py diff --git a/src/nominatim_db/clicmd/special_phrases.py b/src/nominatim_db/clicmd/special_phrases.py index 66085942..9ba751a0 100644 --- a/src/nominatim_db/clicmd/special_phrases.py +++ b/src/nominatim_db/clicmd/special_phrases.py @@ -18,12 +18,9 @@ from ..tools.special_phrases.sp_wiki_loader import SPWikiLoader from ..tools.special_phrases.sp_csv_loader import SPCsvLoader from .args import NominatimArgs + LOG = logging.getLogger() -# Do not repeat documentation of subcommand classes. -# pylint: disable=C0111 -# Using non-top-level imports to avoid eventually unused imports. -# pylint: disable=E0012,C0415 class ImportSpecialPhrases: """\ @@ -62,7 +59,6 @@ class ImportSpecialPhrases: group.add_argument('--no-replace', action='store_true', help='Keep the old phrases and only add the new ones') - def run(self, args: NominatimArgs) -> int: if args.import_from_wiki: @@ -77,7 +73,6 @@ class ImportSpecialPhrases: return 0 - def start_import(self, args: NominatimArgs, loader: SpecialPhraseLoader) -> None: """ Create the SPImporter object containing the right