]> git.openstreetmap.org Git - nominatim.git/commit
convert special phrase loaders to generators
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 30 May 2022 12:12:46 +0000 (14:12 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 30 May 2022 12:12:46 +0000 (14:12 +0200)
commitcce0e5ea38fe3466e157651e789554d99fbdc8fe
treef925cf4091a7230287404aba2c8bb6bf9e080652
parent042e31458917e83713cc60f73a0dc4c171db78b1
convert special phrase loaders to generators

Generators simplify the code quite a bit compared to the previous
Iterator approach.
nominatim/tools/special_phrases/sp_csv_loader.py
nominatim/tools/special_phrases/sp_importer.py
nominatim/tools/special_phrases/sp_wiki_loader.py
test/python/tools/test_import_special_phrases.py
test/python/tools/test_sp_csv_loader.py
test/python/tools/test_sp_wiki_loader.py