X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/34d27ed45cac67fd155f6997d82fa6a5d8946ce9..f917fa67aa19e912db472d2eeedde631be496428:/nominatim/data/place_name.py?ds=inline diff --git a/nominatim/data/place_name.py b/nominatim/data/place_name.py index 4dfaf819..abba3544 100644 --- a/nominatim/data/place_name.py +++ b/nominatim/data/place_name.py @@ -20,8 +20,8 @@ class PlaceName: is the part of the key after the first colon. In addition to that, a name may have arbitrary additional attributes. - How attributes are used, depends on the sanatizers and token analysers. - The exception is is the 'analyzer' attribute. This attribute determines + How attributes are used, depends on the sanitizers and token analysers. + The exception is the 'analyzer' attribute. This attribute determines which token analysis module will be used to finalize the treatment of names. """ @@ -34,7 +34,7 @@ class PlaceName: def __repr__(self) -> str: - return f"PlaceName(name='{self.name}',kind='{self.kind}',suffix='{self.suffix}')" + return f"PlaceName(name={self.name!r},kind={self.kind!r},suffix={self.suffix!r})" def clone(self, name: Optional[str] = None,