mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-13 22:34:07 +00:00
Refactoring loading of external special phrases and importation process by introducing SPLoader and SPWikiLoader
This commit is contained in:
16
nominatim/tools/special_phrases/sp_loader.py
Normal file
16
nominatim/tools/special_phrases/sp_loader.py
Normal file
@@ -0,0 +1,16 @@
|
||||
"""
|
||||
Module containing the SPLoader class.
|
||||
"""
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
class SPLoader(ABC):
|
||||
"""
|
||||
Base class for special phrases loaders.
|
||||
Handle the loading of special phrases from external sources.
|
||||
"""
|
||||
def __iter__(self):
|
||||
return self
|
||||
|
||||
@abstractmethod
|
||||
def __next__(self):
|
||||
pass
|
||||
Reference in New Issue
Block a user